From 23b8bce4bdd40eb9ea17a9816bf979adbeecfd3c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 19 Apr 2020 22:26:49 +0100 Subject: [PATCH] fix fa-marker offset slightly to imporve accuracy --- CHANGELOG.md | 3 ++- README.md | 3 ++- package.json | 2 +- worldmap/worldmap.js | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0feb9b3..4a7be4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ ### Change Log for Node-RED Worldmap + - 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 bus icon + - 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 diff --git a/README.md b/README.md index 877f5eb..b5605ab 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ map web page for plotting "things" on. ### Updates +- 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 bus icon +- 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 diff --git a/package.json b/package.json index 8ed8587..acdc59b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.3.7", + "version": "2.3.8", "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 8c04acd..7ea7fbc 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1374,6 +1374,7 @@ function setMarker(data) { className:"faicon", html: '
', iconSize: [32, 32], + iconAnchor: [16, 12], popupAnchor: [0, -16] }); marker = L.marker(ll, {title:data.name, icon:myMarker, draggable:drag}); @@ -1387,6 +1388,7 @@ function setMarker(data) { className:"wiicon", html: '
', iconSize: [32, 32], + iconAnchor: [16, 16], popupAnchor: [0, -16] }); marker = L.marker(ll, {title:data.name, icon:myMarker, draggable:drag}); @@ -1849,7 +1851,7 @@ function doCommand(cmd) { var myMarker = L.divIcon({ className:"faicon", html: '
', - iconSize: [15, 15], + iconSize: [16, 16], }); customLayer = L.geoJson(null, { pointToLayer: function(geoJsonPoint, latlng) {