Add track icons
This commit is contained in:
@@ -99,8 +99,6 @@ function buildSpotMessages(oMessages, aoTracks){
|
|||||||
|
|
||||||
//Map
|
//Map
|
||||||
var oMap = L.map(self.tmp('$Map')[0], {
|
var oMap = L.map(self.tmp('$Map')[0], {
|
||||||
//center: agCenter,
|
|
||||||
//zoom: iZoom,
|
|
||||||
layers: [oMapBoxSat],
|
layers: [oMapBoxSat],
|
||||||
attributionControl: false,
|
attributionControl: false,
|
||||||
zoomControl: false
|
zoomControl: false
|
||||||
@@ -113,7 +111,7 @@ function buildSpotMessages(oMessages, aoTracks){
|
|||||||
.bindPopup(function(oLayer) {
|
.bindPopup(function(oLayer) {
|
||||||
var asProperties = oLayer.feature.properties;
|
var asProperties = oLayer.feature.properties;
|
||||||
var $Tooltip = $('<div>', {'class':'track_tooltip'});
|
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);
|
if(asProperties.Name != asProperties.description) $('<p>', {'class':'description'}).text(asProperties.description).appendTo($Tooltip);
|
||||||
return $Tooltip[0];
|
return $Tooltip[0];
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ $fa-css-prefix: fa;
|
|||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
@extend .fal;
|
@extend .fal;
|
||||||
|
|
||||||
|
&.push {
|
||||||
|
margin-right: 0.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.#{$fa-css-prefix}-post:before { content: fa-content($fa-var-comment); }
|
.#{$fa-css-prefix}-post:before { content: fa-content($fa-var-comment); }
|
||||||
@@ -25,3 +29,6 @@ $fa-css-prefix: fa;
|
|||||||
.#{$fa-css-prefix}-send:before { content: fa-content($fa-var-paper-plane); }
|
.#{$fa-css-prefix}-send:before { content: fa-content($fa-var-paper-plane); }
|
||||||
.#{$fa-css-prefix}-spinner:before { content: fa-content($fa-var-spinner); }
|
.#{$fa-css-prefix}-spinner:before { content: fa-content($fa-var-spinner); }
|
||||||
.#{$fa-css-prefix}-tasks:before { content: fa-content($fa-var-tasks); }
|
.#{$fa-css-prefix}-tasks:before { content: fa-content($fa-var-tasks); }
|
||||||
|
.#{$fa-css-prefix}-track-off-track:before { content: fa-content($fa-var-hiking); }
|
||||||
|
.#{$fa-css-prefix}-track-main:before { content: fa-content($fa-var-hiking); }
|
||||||
|
.#{$fa-css-prefix}-track-hitchhiking:before { content: fa-content($fa-var-bus); }
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
&.name {
|
&.name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
&.description {
|
&.description {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@@ -226,10 +227,6 @@
|
|||||||
#loading {
|
#loading {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa.push {
|
|
||||||
margin-right: 0.5em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user