From 84ba8d3e3d3764728d3b736293877479e9c6469b Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 12 Dec 2022 09:26:35 +0100 Subject: [PATCH] [IOTA Map] Added more info in tooltip --- assets/js/sections/iotamap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/sections/iotamap.js b/assets/js/sections/iotamap.js index 2d085af6..8a2b7f4d 100644 --- a/assets/js/sections/iotamap.js +++ b/assets/js/sections/iotamap.js @@ -149,12 +149,14 @@ function addMarker(L, D, mapColor, map) { iconSize: [60, 10] }); + var markerTitle = D['tag'] + ' - ' + D['prefix'] + ' - ' + D['name']; + // It seems to me that latitudes have the wrong sign to be drawn correctly in leaflet. That's why they are mulitipled with -1 to be drawn in the correct hemisphere. L.marker( [D['lat1']*-1, D['lon1']], { icon: myIcon, iota: D['tag'], - title: D['tag'], + title: markerTitle, } ).addTo(map).on('click', onClick); }