not so much variation in sidc sizes

This commit is contained in:
Dave Conway-Jones 2019-03-29 18:26:55 +00:00
parent fd9196500f
commit c8e472fb82
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 18 additions and 15 deletions

View File

@ -278,7 +278,7 @@ Optional properties include
- **name** - name of the map base layer OR **overlay** - name of overlay layer - **name** - name of the map base layer OR **overlay** - name of overlay layer
- **url** - url of the map layer - **url** - url of the map layer
- **opt** - options object for the new layer - **opt** - options object for the new layer
- **wms** - boolean, specifies if the data is provided by a Web Map Service - **wms** - true/false/grey, specifies if the data is provided by a Web Map Service (if grey sets layer to greyscale)
- **bounds** - sets the bounds of an Overlay-Image. 2 Dimensional Array that defines the top-left and bottom-right Corners (lat/lon Points) - **bounds** - sets the bounds of an Overlay-Image. 2 Dimensional Array that defines the top-left and bottom-right Corners (lat/lon Points)
- **delete** - name or array of names of base layers and/or overlays to delete and remove from layer menu. - **delete** - name or array of names of base layers and/or overlays to delete and remove from layer menu.
- **heatmap** - set heatmap options object see https://github.com/Leaflet/Leaflet.heat#reference - **heatmap** - set heatmap options object see https://github.com/Leaflet/Leaflet.heat#reference
@ -344,7 +344,8 @@ Or a contextmenu with a button
#### To add a new base layer #### To add a new base layer
The layer will be called `name`. By default it expects a leaflet Tilelayer style url. You can also use a WMS The layer will be called `name`. By default it expects a leaflet Tilelayer style url. You can also use a WMS
style server by adding a property `wms: true`. (see overlay example below) style server by adding a property `wms: true`. You can also set `wms: "grey"` to set the layer to greyscale which
may let you markers be more visible. (see overlay example below).
msg.payload.command.map = { msg.payload.command.map = {
"name":"OSMhot", "name":"OSMhot",
@ -478,6 +479,8 @@ You can then add a new WMS Base layer by injecting a message like
"wms": true // set to true for WMS type mapserver "wms": true // set to true for WMS type mapserver
}}} }}}
Optionally set `"wms":"grey"` to make the layer to greyscale which may make your markers more visible.
## Demo Flow ## Demo Flow

View File

@ -141,20 +141,20 @@ var sidebyside;
var layercontrol; var layercontrol;
var iconSz = { var iconSz = {
"Team/Crew": 17.5, "Team/Crew": 24,
"Squad": 20, "Squad": 24,
"Section": 22.5, "Section": 24,
"Platoon/detachment": 25, "Platoon/detachment": 26,
"Company/battery/troop": 27.5, "Company/battery/troop": 28,
"Battalion/squadron": 30, "Battalion/squadron": 30,
"Regiment/group": 32.5, "Regiment/group": 32,
"Brigade": 35, "Brigade": 34,
"Division": 37.5, "Division": 36,
"Corps/MEF": 40, "Corps/MEF": 36,
"Army": 45, "Army": 40,
"Army Group/front": 50, "Army Group/front": 40,
"Region/Theater": 50, "Region/Theater": 44,
"Command": 50 "Command": 44
}; };
// Create the socket // Create the socket