From a0c9cc7d0abee25f733bcf4ff9c8363bc5490427 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 Nov 2012 21:48:50 +0000 Subject: [PATCH] Use the OSM map marker icons when adding a new diary entry --- app/assets/javascripts/diary_entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/diary_entry.js b/app/assets/javascripts/diary_entry.js index a001d7482..291c86523 100644 --- a/app/assets/javascripts/diary_entry.js +++ b/app/assets/javascripts/diary_entry.js @@ -9,7 +9,7 @@ $(document).ready(function () { map.removeLayer(marker); } - marker = L.marker(e.latlng).addTo(map) + marker = L.marker(e.latlng, {icon: getUserIcon()}).addTo(map) .bindPopup(I18n.t('diary_entry.edit.marker_text')); } @@ -26,7 +26,7 @@ $(document).ready(function () { map.setView(centre, params.zoom); if ($("#latitude").val() && $("#longitude").val()) { - marker = L.marker(centre).addTo(map) + marker = L.marker(centre, {icon: getUserIcon()}).addTo(map) .bindPopup(I18n.t('diary_entry.edit.marker_text')); } -- 2.39.5