add fillColor to hulls
This commit is contained in:
parent
a7b78986b3
commit
795b6ce7b3
@ -1,5 +1,6 @@
|
|||||||
### Change Log for Node-RED Worldmap
|
### Change Log for Node-RED Worldmap
|
||||||
|
|
||||||
|
- v2.5.7 - Let fillColor set color of hulls
|
||||||
- v2.5.6 - Let node accept plain text payload kml or nvg input
|
- v2.5.6 - Let node accept plain text payload kml or nvg input
|
||||||
- v2.5.5 - Fix NVG import to handle symbols for points
|
- v2.5.5 - Fix NVG import to handle symbols for points
|
||||||
- v2.5.4 - Fix delete of hulls
|
- v2.5.4 - Fix delete of hulls
|
||||||
|
11
README.md
11
README.md
@ -11,6 +11,7 @@ map web page for plotting "things" on.
|
|||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
|
- v2.5.7 - Let fillColor set color of hulls
|
||||||
- v2.5.6 - Let node accept plain text payload kml or nvg input
|
- v2.5.6 - Let node accept plain text payload kml or nvg input
|
||||||
- v2.5.5 - Fix NVG import to handle symbols for points
|
- v2.5.5 - Fix NVG import to handle symbols for points
|
||||||
- v2.5.4 - Fix delete of hulls
|
- v2.5.4 - Fix delete of hulls
|
||||||
@ -25,16 +26,6 @@ map web page for plotting "things" on.
|
|||||||
- v2.3.11 - Better editing of drawing layer, add OpenTopoMap, and better Esri satellite
|
- v2.3.11 - Better editing of drawing layer, add OpenTopoMap, and better Esri satellite
|
||||||
- v2.3.10 - 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.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.
|
|
||||||
- v2.3.5 - Let tracks node handle array of points. Let http icons be rotated to hdg or bearing.
|
|
||||||
- v2.3.4 - Add aligning bus icon
|
|
||||||
- v2.3.3 - Fix satellite view max zoom
|
|
||||||
- v2.3.2 - Add better geojson support - name plus geojson properties
|
|
||||||
- v2.3.1 - Stop adding point when you add a circle
|
|
||||||
- v2.3.0 - Add colour options for drawing layer
|
|
||||||
- v2.2.1 - Better implementation of legend create/show/hide
|
|
||||||
- v2.2.0 - Add range rings and arcs function
|
|
||||||
|
|
||||||
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list.
|
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"name": "node-red-contrib-web-worldmap",
|
||||||
"version": "2.5.6",
|
"version": "2.5.7",
|
||||||
"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",
|
||||||
|
@ -305,8 +305,8 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
|
|||||||
RED.keyboard.add("*",/* m */ 77,{ctrl:true, shift:true},function() { window.open(document.location.protocol+"//"+lnk) });
|
RED.keyboard.add("*",/* m */ 77,{ctrl:true, shift:true},function() { window.open(document.location.protocol+"//"+lnk) });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
RED.keyboard.add("*","ctrl-shift-m","Show Map");
|
|
||||||
RED.actions.add("Show Map",function() { window.open(document.location.protocol+"//"+lnk) });
|
RED.actions.add("Show Map",function() { window.open(document.location.protocol+"//"+lnk) });
|
||||||
|
RED.keyboard.add("*","ctrl-shift-m","Show Map");
|
||||||
}
|
}
|
||||||
RED.nodes.registerType('worldmap',{
|
RED.nodes.registerType('worldmap',{
|
||||||
category: 'location',
|
category: 'location',
|
||||||
@ -596,4 +596,3 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -427,6 +427,11 @@ module.exports = function(RED) {
|
|||||||
newmsg.payload.name = newmsg.payload[node.prop];
|
newmsg.payload.name = newmsg.payload[node.prop];
|
||||||
newmsg.payload.clickable = true;
|
newmsg.payload.clickable = true;
|
||||||
|
|
||||||
|
if (msg.payload.fillColor) {
|
||||||
|
newmsg.payload.color = msg.payload.fillColor;
|
||||||
|
newmsg.payload.fillColor = msg.payload.fillColor;
|
||||||
|
}
|
||||||
|
|
||||||
if (leafletHull.length === 1 && oldl === 2) {
|
if (leafletHull.length === 1 && oldl === 2) {
|
||||||
newmsg.payload.deleted = true;
|
newmsg.payload.deleted = true;
|
||||||
node.send(newmsg);
|
node.send(newmsg);
|
||||||
|
Loading…
Reference in New Issue
Block a user