-function init(){
- var params = $("#map").data();
- var map = createMap("map");
-
- setMapCenter(new OpenLayers.LonLat(params.lon, params.lat), params.zoom);
+$(document).ready(function () {
+ var map = createMap("map", {
+ zoomControl: true,
+ panZoomControl: false
+ });
+
+ if (OSM.home) {
+ map.setView([OSM.home.lat, OSM.home.lon], 12);
+ } else {
+ map.setView([0, 0], 0);
+ }