wmremove

Remove overlay on web map

Syntax

Description

example

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

example

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

Examples

expand all

Remove a Marker Overlay

Draw a marker on a web map. wmmarker creates the web map. Pause, and then remove the marker overlay.

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

Remove Multiple Overlays

Draw several marker overlays on a web map. wmmarker creates the web map. Pause, and then remove the marker overlays, specifying a vector of overlay handles.

h1 = wmmarker(42, -80);
h2 = wmmarker(42, -78);
pause(1);
wmremove([h1 h2])

Remove Line Overlay

Create a web map.

wm = webmap();

Load coastline data and display it as an overlay on the webmap.

coast = load('coast');
h = wmline(coast.lat, coast.long);

Remove the overlay specified by h.

wmremove(h)

Input Arguments

expand all

h — Web map overlayscale overlay handle or vector of overlay handles

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

Was this topic helpful?