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.
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)
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)
zoomLevel— Zoom level
Zoom level, specified as a scalar numeric integer in the range
wm— Web map
Web map, specified as a web map handle.
zoomLevelOut— Zoom level of the current web map
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.