Main Content

Specify a WMS Layer as a Base Layer

Display a WMS layer in a web map by using the webmap function. The following example shows how to use Web Map Service functions to connect with a Web server, retrieve a layer, and display it in a web map. Change the view using your mouse.

info = wmsinfo("https://neo.gsfc.nasa.gov/wms/wms?")
nasa = info.Layer;
baselayer = refine(nasa,"bluemarbleng",  ...
      "SearchField","layername","MatchType","exact");
baselayer = wmsupdate(baselayer);
webmap(baselayer)

Web map centered on North America showing satellite imagery

Web maps do not support layers from wms.mathworks.com.

See Also

| |

Related Topics