Adding a simple zoom control.
This control generates simple zoom in/out links that can be styled with CSS.
This commit is contained in:
14
examples/zoom.js
Normal file
14
examples/zoom.js
Normal 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
|
||||
});
|
||||
Reference in New Issue
Block a user