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);