diff --git a/README.md b/README.md index 00a6330..e73d4ce 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/worldmap/index.html b/worldmap/index.html index 963dee7..f5be625 100644 --- a/worldmap/index.html +++ b/worldmap/index.html @@ -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