Use nicer markers

This commit is contained in:
John Firebaugh 2012-11-09 13:30:29 -08:00
parent f4c64084a6
commit f913b7d8a5
7 changed files with 3 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 758 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -60,7 +60,7 @@ $(document).ready(function () {
map.removeLayer(marker); map.removeLayer(marker);
} }
marker = L.marker(centre, {icon: getArrowIcon()}).addTo(map); marker = L.marker(centre).addTo(map);
}); });
function updateLocation() { function updateLocation() {

View file

@ -112,19 +112,11 @@ function createMap(divName, options) {
return map; return map;
} }
function getArrowIcon() {
return L.icon({
iconUrl: <%= asset_path('arrow.png').to_json %>,
iconSize: [25, 22],
iconAnchor: [22, 20]
});
}
function getUserIcon(url) { function getUserIcon(url) {
return L.icon({ return L.icon({
iconUrl: url || <%= asset_path('marker-red.png').to_json %>, iconUrl: url || <%= asset_path('marker-red.png').to_json %>,
iconSize: [21, 25], iconSize: [19, 25],
iconAnchor: [12, 27] iconAnchor: [11, 26]
}); });
} }