Adding a simple zoom control.

This control generates simple zoom in/out links that can be styled with CSS.
This commit is contained in:
tschaub
2012-03-02 15:45:30 -07:00
parent 39962a6179
commit 0ce7674be6
5 changed files with 222 additions and 0 deletions

14
examples/zoom.js Normal file
View File

@@ -0,0 +1,14 @@
var map = new OpenLayers.Map({
div: "map",
layers: [new OpenLayers.Layer.OSM()],
controls: [
new OpenLayers.Control.Navigation({
dragPanOptions: {
enableKinetic: true
}
}),
new OpenLayers.Control.Zoom()
],
center: [0, 0],
zoom: 1
});