L.OSM.zoom({position: position})
.addTo(map);
- L.control.locate({position: position})
- .addTo(map);
+ L.control.locate({
+ position: position,
+ title: I18n.t('javascripts.map.locate.title')
+ }).addTo(map);
var sidebar = L.OSM.sidebar('#map-ui')
.addTo(map);
L.control.scale()
.addTo(map);
+ $('.leaflet-control .control-button').tooltip({placement: 'left', container: 'body'});
+
map.on('moveend layeradd layerremove', updateLocation);
var marker = L.marker([0, 0], {icon: getUserIcon()});