X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/648f23259680f55d233656413679c58eec98c985..8aa6d575fff4fc850464f704282811208ae6f5e1:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 28659a931..b41bbb0f4 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -34,7 +34,7 @@ $(document).ready(function () { } if (params.marker) { - marker = L.marker([params.mlat, params.mlon]).addTo(map); + marker = L.marker([params.mlat, params.mlon], {icon: getUserIcon()}).addTo(map); } if (params.object) { @@ -60,7 +60,7 @@ $(document).ready(function () { map.removeLayer(marker); } - marker = L.marker(centre, {icon: getArrowIcon()}).addTo(map); + marker = L.marker(centre, {icon: getUserIcon()}).addTo(map); }); function updateLocation() {