add missing brace
This commit is contained in:
parent
209fcbd441
commit
09dfaa052f
@ -1,6 +1,7 @@
|
||||
### Change Log for Node-RED Worldmap
|
||||
|
||||
- v2.0.18 - Stop map contextmenu bleedthrough to marker. Add compress middleware.
|
||||
- v2.0.20 - ensure `fit` option is boolean, Issue #109. Fix track layers, Issue #110.
|
||||
- v2.0.18 - Stop map contextmenu bleedthrough to marker. Add compress middleware.
|
||||
- v2.0.17 - Let clear command also clear tracks from tracks node
|
||||
- v2.0.16 - Revert use of ES6 import. Keep IE11 happy for while
|
||||
- v2.0.13 - Fix tracks colour
|
||||
|
@ -9,7 +9,7 @@ map web page for plotting "things" on.
|
||||
|
||||
### Updates
|
||||
|
||||
- v2.0.19 - ensure `fit` option is boolean, Issue #109. Fix tracks, Issue #110.
|
||||
- v2.0.20 - ensure `fit` option is boolean, Issue #109. Fix track layers, Issue #110.
|
||||
- v2.0.18 - Stop map contextmenu bleedthrough to marker. Add compress middleware.
|
||||
- v2.0.17 - Let clear command also clear tracks from tracks node
|
||||
- v2.0.16 - Revert use of ES6 import. Keep IE11 happy for while
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-contrib-web-worldmap",
|
||||
"version": "2.0.19",
|
||||
"version": "2.0.20",
|
||||
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
|
||||
"dependencies": {
|
||||
"cgi": "0.3.1",
|
||||
|
@ -1678,7 +1678,7 @@ function doCommand(cmd) {
|
||||
layercontrol.addOverlay(overlays[cmd.map.overlay],cmd.map.overlay);
|
||||
}
|
||||
map.addLayer(overlays[cmd.map.overlay]);
|
||||
if (cmd.map.hasOwnProperty("fit") && cmd.map.fit === true)) { map.fitBounds(overlays[cmd.map.overlay].getBounds()); }
|
||||
if (cmd.map.hasOwnProperty("fit") && (cmd.map.fit === true)) { map.fitBounds(overlays[cmd.map.overlay].getBounds()); }
|
||||
}
|
||||
// Add a new NVG XML overlay layer
|
||||
if (cmd.map && cmd.map.hasOwnProperty("overlay") && cmd.map.hasOwnProperty("nvg") ) {
|
||||
|
Loading…
Reference in New Issue
Block a user