only draw circle (and not also a point) when asked
This commit is contained in:
parent
57d1032fef
commit
e7b41e000d
@ -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
|
||||||
|
@ -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",
|
||||||
|
@ -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")) {
|
||||||
@ -1136,7 +1138,7 @@ function setMarker(data) {
|
|||||||
// Create the icons... handle plane, car, ship, wind, earthquake as specials
|
// Create the icons... handle plane, car, ship, wind, earthquake as specials
|
||||||
var marker, myMarker;
|
var marker, myMarker;
|
||||||
var icon, q;
|
var icon, q;
|
||||||
var words="";
|
var words = "";
|
||||||
var labelOffset = [12,0];
|
var labelOffset = [12,0];
|
||||||
var drag = false;
|
var drag = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user