map.zoomToExtent(proj(bbox));
if (params.box) {
- $(window).load(function() { addBoxToMap(bbox) });
+ addBoxToMap(bbox);
}
} else {
setMapCenter(new OpenLayers.LonLat(params.lon, params.lat), params.zoom);
url += "/full";
}
- $(window).load(function() { addObjectToMap(url, params.object_zoom) });
+ addObjectToMap(url, params.object_zoom);
}
handleResize();