diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d49054..de8e9fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### Change Log for Node-RED Worldmap - - v2.3.9 - improve geojson layer and name handling. + - v2.3.10 - improve geojson layer and name handling. - v2.3.8 - fix fa-marker offset to improve accuracy. - v2.3.7 - show icon within circle if icon present. Issue #128 - v2.3.6 - show ruler if grid is turned on. diff --git a/README.md b/README.md index e64fc55..89b026b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ map web page for plotting "things" on. ### Updates -- v2.3.9 - improve geojson layer and name handling. +- v2.3.10 - improve geojson layer and name handling. - v2.3.8 - fix fa-marker offset to improve accuracy. - v2.3.7 - show icon within circle if icon present. Issue #128 - v2.3.6 - show ruler if grid is turned on. diff --git a/package.json b/package.json index 9bcda15..ebbdfba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.3.9", + "version": "2.3.10", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "cgi": "0.3.1", diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index c443dd4..8bce1b5 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -2082,6 +2082,8 @@ function doGeojson(n,g,l,o) { markers[n].lay = lay; if (typeof layers[lay] == "undefined") { // add layer if if doesn't exist layers[lay] = new L.LayerGroup(); + overlays[lay] = layers[lay]; + layercontrol.addOverlay(overlays[lay],lay); } layers[lay].addLayer(markers[n]); map.addLayer(layers[lay]);