Replace OSM markers with recolured versions of the Leaflet marker

This commit is contained in:
Tom Hughes 2012-11-20 23:11:41 +00:00
parent bc1b4d53e3
commit 62ba6b50ba
5 changed files with 5 additions and 3 deletions

View file

@ -115,9 +115,11 @@ function createMap(divName, options) {
function getUserIcon(url) {
return L.icon({
iconUrl: url || <%= asset_path('marker-red.png').to_json %>,
iconSize: [19, 25],
iconAnchor: [11, 26],
popupAnchor: [-1, -20]
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>,
shadowSize: [41, 41]
});
}