Add track icons
This commit is contained in:
@@ -99,8 +99,6 @@ function buildSpotMessages(oMessages, aoTracks){
|
||||
|
||||
//Map
|
||||
var oMap = L.map(self.tmp('$Map')[0], {
|
||||
//center: agCenter,
|
||||
//zoom: iZoom,
|
||||
layers: [oMapBoxSat],
|
||||
attributionControl: false,
|
||||
zoomControl: false
|
||||
@@ -113,7 +111,7 @@ function buildSpotMessages(oMessages, aoTracks){
|
||||
.bindPopup(function(oLayer) {
|
||||
var asProperties = oLayer.feature.properties;
|
||||
var $Tooltip = $('<div>', {'class':'track_tooltip'});
|
||||
$('<p>', {'class':'name'}).text(asProperties.name).appendTo($Tooltip);
|
||||
$('<p>', {'class':'name'}).addIcon('fa-track-'+asProperties.type, true).append(asProperties.name).appendTo($Tooltip);
|
||||
if(asProperties.Name != asProperties.description) $('<p>', {'class':'description'}).text(asProperties.description).appendTo($Tooltip);
|
||||
return $Tooltip[0];
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user