Set or obtain zoom level of web map
the zoom level of the current web map,
If there is no current web map,
a new web map.
Get Zoom Level of Current Web Map and Specify New Zoom Level
Create a web map at default zoom level.
zoomLevel = wmzoom()
zoomLevel = 0
Zoom in and center the web map at the specified latitude and longitude (London).
wmzoom(10) wmcenter(51.52, 0)
Specify Zoom Level of Several Web Maps
Create two web maps.
wm1 = webmap; wm2 = webmap('worldtopographic');
Zoom in and center both maps at a specified latitude and longitude (Paris).
lat = 48.821; lon = 1.9391; zoomLevel = 10; wmzoom(wm1, zoomLevel) wmcenter(wm1, lat, lon) wmzoom(wm2, zoomLevel) wmcenter(wm2, lat, lon)
zoomLevelOut — Zoom level of the current web map
scalar numeric integer in the range
Zoom level of the current web map, returned as a scalar numeric
integer in the range
Particular maps may not support every available zoom level. If your map displays as completely white, try another zoom level. The map you are displaying may not support the zoom level you have currently selected. You can also select another base layer, which might support the specified zoom level.
 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.