Hi,
I have two external button for zoomin and zoom out.
on click of zoomin button i am using map.centerAndZoom()
function.
But it doesnt work for me.
i want the extent to be maximixed and minimized..
when use this,
map.centerAndZoom((0,0),1)
map.centerAndZoom((0,0),2)
map centers to one position.. how do i make it dynamic..
i.e., on click on button it should keep zooming in.. and similarly the zoom out button as well
what other functions for the same can i manifest?
Try this:For ZoomIn Button:var extent=map.extent;map.setExtent(extent.expand(0.5));For ZoomOut Button:var extent=map.extent;map.setExtent(extent.expand(2));