MapChart.clearLayers

Syntax

clearLayers();

Description

The clearLayers method clears all layers in the map.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). A map with the Google topobase must also be loaded (see  page with description of the MapChart.afterGoogleLoad property).

Clear all layers of a map with Google topobase:

map.clearLayers();

After executing the example all layers in the map with Google topobase are cleared:

See also:

MapChart