Main Content

wmremove

(To be removed) Remove overlay on web map

The wmremove function will be removed in a future release. Use a geographic axes object and the delete function instead. For information on updating your code, see Version History.

Description

wmremove() removes the overlay most recently inserted into the current web map.1

wmremove(h) removes the overlay or overlays specified by the scalar overlay handle or vector of overlay handles, h.

example

Examples

collapse all

Display a marker on a web map. Return a handle to the marker overlay in h. Pause for one second, and then remove the marker overlay.

h = wmmarker(42,-73);
pause(1)
wmremove(h)

Input Arguments

collapse all

Web map overlay, specified as a scalar overlay handle or a vector of overlay handles.

Version History

Introduced in R2013b

collapse all


1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.