- var centre = new OpenLayers.LonLat(params.lon, params.lat);
- var map = createMap("map");
+ var centre = [params.lat, params.lon];
+ var position = $('html').attr('dir') === 'rtl' ? 'topleft' : 'topright';
+
+ map = L.map("map", {
+ attributionControl: false,
+ zoomControl: false
+ }).addLayer(new L.OSM.Mapnik());
+
+ L.OSM.zoom({position: position})
+ .addTo(map);