new OpenLayers.Control.Attribution(),
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.Navigation(),
+ new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.PanZoomBar()
],
units: "m",
vectors.removeFeature(box);
}
-function getMapCenter(center, zoom) {
+function getMapCenter() {
return map.getCenter().clone().transform(map.getProjectionObject(), epsg4326);
}
return map.getExtent().clone().transform(map.getProjectionObject(), epsg4326);
}
+function getMapZoom() {
+ return map.getZoom();
+}
+
function getEventPosition(event) {
return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326);
}