Web maps are interactive maps that are accessed through web pages. As a result, they require a live Internet connection. Using Mapping Toolbox™ software, you can:
Display web maps in a browser.
Interactively or programmatically pan and zoom.
Select the maps to display, called base layers or
basemaps. The webmap
function
provides a set of basemaps from which you can choose, for example
'Open Street Map'
. You can also use WMS Layers and
define custom basemaps.
Add vector data, called overlay layers, such as lines and markers.
Share your results using printing capabilities or the MATLAB®
publish
command.
Note
To display a web map using the toolbox, you must have an Internet connection. MathWorks® cannot guarantee the stability and accuracy of web maps, as the servers are located on the Internet and are independent from MathWorks. Occasionally, maps may be slow to display, display partially, or fail to display, because web map servers can become unavailable for short periods of time.
Web maps display in a browser window, not a MATLAB figure window. The graphics in web maps are not part of MATLAB graphics. In MATLAB Online™, multiple web maps appear as separate browser windows instead of tabs in a single browser window.
For example, this image shows the default web map display, including the pan tool, zoom tool, scale bar, Layer Manager expander arrow, current pointer location, and web map tabs.
Open the Layer Manager by clicking the expander arrow in the web map toolbar. Use the Layer Manager to
select a basemap layer and display overlay layers.
When displaying named base layers, or a WMSLayer
array in a
coordinate reference system of EPSG:900913, the projected coordinate system is "Web
Mercator". Otherwise, when displaying a WMSLayer
array, the
projected coordinate system is EPSG:4326. These projections include a geographic
quadrangle bounded north and south by parallels (which map to horizontal lines) and
east and west by meridians (which map to vertical lines).
addCustomBasemap
| webmap
| wmcenter
| wmclose
| wmlimits
| wmzoom