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