From: Tom Hughes Date: Tue, 20 Nov 2012 21:48:50 +0000 (+0000) Subject: Use the OSM map marker icons when adding a new diary entry X-Git-Tag: live~6032^2~10 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a0c9cc7d0abee25f733bcf4ff9c8363bc5490427 Use the OSM map marker icons when adding a new diary entry --- 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')); }