replace tracks tooltip with popup
This commit is contained in:
@@ -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 = $('<div>', {'class':'track_tooltip'});
|
||||
$('<p>', {'class':'name'}).text(asProperties.Name).appendTo($Tooltip);
|
||||
|
||||
Reference in New Issue
Block a user