- var centre = new OpenLayers.LonLat(params.lon, params.lat);
- var map = createMap("map");
+ var centre = [params.lat, params.lon];
+
+ map = L.map("map", {
+ attributionControl: false,
+ zoomControl: false
+ }).addLayer(new L.OSM.Mapnik());
+
+ L.OSM.zoom()
+ .addTo(map);
+
+ $("#map").on("resized", function () {
+ map.invalidateSize();
+ });