Fix Add icon menu to include sidc link

This commit is contained in:
Dave Conway-Jones 2021-11-24 20:20:55 +00:00
parent 14f51b7016
commit 2363a767b9
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.21.7 - Let SIDC/icon short code be only 4 chars long - v2.21.8 - Let SIDC/icon short code be only 4 chars long
- v2.21.5 - Fix handling of "old" ship nav to ship navigation - v2.21.5 - Fix handling of "old" ship nav to ship navigation
- v2.21.4 - Fix speed leader length. Add transparentPixels option. - v2.21.4 - Fix speed leader length. Add transparentPixels option.
- v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels. - v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels.

View File

@ -11,7 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.21.7 - Let SIDC/icon short code be only 4 chars long - v2.21.8 - Let SIDC/icon short code be only 4 chars long
- v2.21.5 - Fix handling of "old" ship nav to ship navigation - v2.21.5 - Fix handling of "old" ship nav to ship navigation
- v2.21.4 - Fix speed leader length. Add transparentPixels option.. - v2.21.4 - Fix speed leader length. Add transparentPixels option..
- v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels. - v2.21.3 - Add zoom to bounds action. Adjust map layers max zoom levels.

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.21.7", "version": "2.21.8",
"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": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -653,7 +653,8 @@ map.on('moveend', function() {
//}); //});
// single right click to add a marker // single right click to add a marker
var addmenu = "<b>Add marker</b><br><input type='text' id='rinput' autofocus onkeydown='if (event.keyCode == 13) addThing();' placeholder='name (,icon, layer, colour, heading)'/>"; var addmenu = "<b>Add marker</b><br><input type='text' id='rinput' autofocus onkeydown='if (event.keyCode == 13) addThing();' placeholder='name (,icon/SIDC, layer, colour, heading)'/>";
if (navigator.onLine) { addmenu += '<br/><a href="https://spatialillusions.com/unitgenerator/" target="_new">MilSymbol SIDC generator</a>'; }
var rightmenuMap = L.popup({keepInView:true, minWidth:250}).setContent(addmenu); var rightmenuMap = L.popup({keepInView:true, minWidth:250}).setContent(addmenu);
var rclk = {}; var rclk = {};