From 429ac634984e59157e77fafe56911c2d97ad19e7 Mon Sep 17 00:00:00 2001 From: David Bell Date: Tue, 1 Mar 2016 15:30:25 +0000 Subject: [PATCH] Fixed tooltip on geomap. --- html/includes/common/worldmap.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/includes/common/worldmap.inc.php b/html/includes/common/worldmap.inc.php index fabda7779f..8417a236c4 100644 --- a/html/includes/common/worldmap.inc.php +++ b/html/includes/common/worldmap.inc.php @@ -191,7 +191,8 @@ var greenMarker = L.AwesomeMarkers.icon({ $z_offset = 10000; // move marker to foreground } $temp_output .= "var title = '\"\"".$map_devices['hostname']."'; -var marker = L.marker(new L.LatLng(".$map_devices['lat'].", ".$map_devices['lng']."), {title: title, icon: $icon, zIndexOffset: $z_offset}); +var tooltip = '".$map_devices['hostname']."'; +var marker = L.marker(new L.LatLng(".$map_devices['lat'].", ".$map_devices['lng']."), {title: tooltip, icon: $icon, zIndexOffset: $z_offset}); marker.bindPopup(title); markers.addLayer(marker);\n"; }