summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiri Reiter <siri@jones.dk>2018-05-21 20:03:45 +0200
committerSiri Reiter <siri@jones.dk>2018-05-21 20:03:45 +0200
commit0e773ca1f7eb938d4f249878e173c098fb881427 (patch)
tree002cdcc5a8e9bb3ebf04d34df1a2c26124d00c3e
parent18d9c03c83c1395b32bde1000a836cb3e556a38b (diff)
Add waypoint with font-awesome icon.
l---------src/fonts1
-rw-r--r--src/js/tours.js11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/fonts b/src/fonts
new file mode 120000
index 0000000..947a8b8
--- /dev/null
+++ b/src/fonts
@@ -0,0 +1 @@
+/usr/share/fonts-font-awesome/fonts \ No newline at end of file
diff --git a/src/js/tours.js b/src/js/tours.js
index 7149289..4c4e331 100644
--- a/src/js/tours.js
+++ b/src/js/tours.js
@@ -6,7 +6,8 @@ requirejs(['./slippymap'], function(_foo) {
});
requirejs([
'app/mapfactory',
- 'json!data/tours.json'
+ 'json!data/tours.json',
+ 'leaflet.extra-markers'
], function(mkmap, tours) {
L.Icon.Default.imagePath = depth + 'img/leaflet/';
var map = mkmap('map', [
@@ -22,6 +23,14 @@ requirejs(['./slippymap'], function(_foo) {
map.layers.addOverlay(boundary(data), 'Regionsgrænse');
});
*/
+var markerDead = L.ExtraMarkers.icon({
+ prefix: 'fa',
+ icon: 'fa-ambulance',
+ markerColor: 'red'
+});
+
+var waypoint = L.marker([55.6924, 12.5870],{icon: markerDead}).addTo(map);
+waypoint.bindPopup("<a href=../ostervold/>Ud af Østerport</a>");
function style(feature) {
return {