summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1ba7ecc)
This patches the map on the user page in the same way as the main map.
Closes #1328
L.OSM.zoom({position: position})
.addTo(map);
L.OSM.zoom({position: position})
.addTo(map);
+ var locate = L.control.locate({
+ icon: 'icon geolocate',
+ iconLoading: 'icon geolocate',
strings: {
title: I18n.t('javascripts.map.locate.title'),
popup: I18n.t('javascripts.map.locate.popup')
}
}).addTo(map);
strings: {
title: I18n.t('javascripts.map.locate.title'),
popup: I18n.t('javascripts.map.locate.popup')
}
}).addTo(map);
+ var locateContainer = locate.getContainer();
+
+ $(locateContainer)
+ .removeClass('leaflet-control-locate leaflet-bar')
+ .addClass('control-locate')
+ .children("a")
+ .removeClass('leaflet-bar-part leaflet-bar-part-single')
+ .addClass('control-button');
+
if (OSM.home) {
map.setView([OSM.home.lat, OSM.home.lon], 12);
} else {
if (OSM.home) {
map.setView([OSM.home.lat, OSM.home.lon], 12);
} else {