only draw circle (and not also a point) when asked

This commit is contained in:
Dave Conway-Jones 2020-03-11 18:55:51 +00:00
parent 57d1032fef
commit e7b41e000d
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.3.1 - Stop adding point when you add a circle
- v2.3.0 - Add colour options for drawing layer - v2.3.0 - Add colour options for drawing layer
- v2.2.1 - Better implementation of legend create/show/hide - v2.2.1 - Better implementation of legend create/show/hide
- v2.2.0 - Add rangering arcs function - v2.2.0 - Add rangering arcs function

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.3.0", "version": "2.3.1",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"cgi": "0.3.1", "cgi": "0.3.1",

View File

@ -1095,6 +1095,8 @@ function setMarker(data) {
polycirc = L.circle(new L.LatLng((data.lat*1), (data.lon*1)), data.radius*1, opt); polycirc = L.circle(new L.LatLng((data.lat*1), (data.lon*1)), data.radius*1, opt);
} }
polygons[data.name] = polycirc; polygons[data.name] = polycirc;
delete (data.lat);
delete (data.lon);
} }
} }
else if (data.hasOwnProperty("arc")) { else if (data.hasOwnProperty("arc")) {