From bc56f5af40ae2a5650c71a52a64ffc7da55c3a02 Mon Sep 17 00:00:00 2001 From: franzz Date: Wed, 17 Oct 2018 20:01:04 +0200 Subject: [PATCH] replace tracks tooltip with popup --- masks/messages.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masks/messages.html b/masks/messages.html index bdf9957..4532348 100755 --- a/masks/messages.html +++ b/masks/messages.html @@ -126,11 +126,11 @@ oSpot.pageInit = function(asHash) asColors[$Legend.attr('class').replace('line', '').trim()] = $Legend.css('border-top-color'); }); - //Assign track color & tooltip + //Assign track color & popup L.geoJson(aoTracks, { style: function(oTrack) {return {color: asColors[oTrack.properties.type], weight: 4, opacity: 1};} }) - .bindTooltip(function(oLayer) { + .bindPopup(function(oLayer) { var asProperties = oLayer.feature.properties; var $Tooltip = $('
', {'class':'track_tooltip'}); $('

', {'class':'name'}).text(asProperties.Name).appendTo($Tooltip);