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
- **url** - url of the map 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)
- **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
@ -344,7 +344,8 @@ Or a contextmenu with a button
#### 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
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 = {
"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
}}}
Optionally set `"wms":"grey"` to make the layer to greyscale which may make your markers more visible.
## Demo Flow

View File

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