]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Remove references to #view_tab
[rails.git] / app / assets / javascripts / user.js
index 80b5059157ac40b40e4e155cbd1ccf7fc43b3b1e..6a0d38dd5d9dcd9ccce4ff4d34637bec30d38b3d 100644 (file)
@@ -6,10 +6,13 @@ $(document).ready(function () {
     zoomControl: false
   }).addLayer(new L.OSM.Mapnik());
 
     zoomControl: false
   }).addLayer(new L.OSM.Mapnik());
 
-  L.OSM.zoom()
+  var position = $('html').attr('dir') === 'rtl' ? 'topleft' : 'topright';
+
+  L.OSM.zoom({position: position})
     .addTo(map);
 
   L.control.locate({
     .addTo(map);
 
   L.control.locate({
+    position: position,
     strings: {
       title: I18n.t('javascripts.map.locate.title'),
       popup: I18n.t('javascripts.map.locate.popup')
     strings: {
       title: I18n.t('javascripts.map.locate.title'),
       popup: I18n.t('javascripts.map.locate.popup')