Update zoom example to demonstrate custom style.
This commit is contained in:
@@ -7,8 +7,28 @@ var map = new OpenLayers.Map({
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.Zoom()
|
||||
],
|
||||
center: [0, 0],
|
||||
zoom: 1
|
||||
});
|
||||
|
||||
var map2 = new OpenLayers.Map({
|
||||
div: "map2",
|
||||
layers: [new OpenLayers.Layer.OSM()],
|
||||
controls: [
|
||||
new OpenLayers.Control.Navigation({
|
||||
dragPanOptions: {
|
||||
enableKinetic: true
|
||||
}
|
||||
}),
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.Zoom({
|
||||
zoomInId: "customZoomIn",
|
||||
zoomOutId: "customZoomOut"
|
||||
})
|
||||
],
|
||||
center: [0, 0],
|
||||
zoom: 1
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user