X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/648f23259680f55d233656413679c58eec98c985..370f4bf562845a864e425f25bb8279afcb7016c3:/app/assets/javascripts/diary_entry.js?ds=inline 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')); }