You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ Feel free to [. #PR295.
@@ -78,6 +79,7 @@ Optional properties for **msg.payload** include
78
79
-**color** : CSS color name or #rrggbb value for heading vector line or accuracy polygon.
79
80
-**icon** : <ahref="https://fontawesome.com/v4.7.0/icons/"target="mapinfo">font awesome</a> icon name, <ahref="https://github.com/Paul-Reed/weather-icons-lite"target="mapinfo">weather-lite</a> icon, :emoji name:, or https:// or inline data:image/ uri.
80
81
-**iconColor** : Standard CSS colour name or #rrggbb hex value.
82
+
-**iconSize** : Set the size in pixels of the "special" icons and web icons.
81
83
-**SIDC** : NATO symbology code (can be used instead of icon). See below.
82
84
-**building** : OSMbulding GeoJSON feature set to add 2.5D buildings to buildings layer. See below.
83
85
-**ttl** : time to live, how long an individual marker stays on map in seconds (overrides general maxage setting, minimum 20 seconds)
@@ -105,7 +107,7 @@ If you use the name without the fa- prefix (eg `male`) you will get the icon ins
105
107
106
108
You can also specify an emoji as the icon by using the :emoji name: syntax - for example `:smile:`. Here is a **[list of emojis](https://github.com/dceejay/RedMap/blob/master/emojilist.md)**.
107
109
108
-
Or you can specify an image to load as an icon by setting the icon to `http(s)://...` By default it will be scaled to 32x32 pixels. You can change the size by setting **iconSize** to a number - eg 64. Example icon - `"https://img.icons8.com/windows/32/000000/bird.png"` or you can use an inline image of the form `data:image/...` which uses a base64 encoded image.
110
+
Or you can specify an image to load as an icon by setting the icon to `http(s)://...` By default it will be scaled to 32x32 pixels. You can change the size by setting **iconSize** to a number of pixels - eg 64. Example icon - `"https://img.icons8.com/windows/32/000000/bird.png"` or you can use an inline image of the form `data:image/...` which uses a base64 encoded image.
109
111
110
112
There are also several special icons...
111
113
@@ -129,6 +131,9 @@ There are also several special icons...
129
131
-**unknown** : pseudo NATO style yellow square.
130
132
-**earthquake** : black circle - diameter proportional to `msg.mag`.
131
133
134
+
The size of these can also be set in pixels using the **iconSize** property, e.g. `iconSize:96`.
135
+
The default size is 32 pixels.
136
+
132
137
#### NATO Symbology
133
138
134
139
You can use NATO symbols from <ahref="https://github.com/spatialillusions/milsymbol"target="mapinfo">milsymbol.js</a>.
0 commit comments