SiteWatch API Help

setZoom

setZoom

Previous topic Next topic  

setZoom

Previous topic Next topic  

Zoom is the extent at which the map is displayed.

 

setZoom is a method that sets the map zoom level and does a zoomIn or zoomOut depending on the previous zoom level.

 

Parameter

Value

zoom: integer

Zoom level (0 = highest, 10 = lowest).

 

Example:

map.setZoom(5);

 


 

zoomIn and zoomOut are methods that change the zoom (increase or decrease map details) of the map to a zoom level relative to the current map center location.