MapLayer.removeSubLayer

Syntax

removeSubLayer(id: String);

Parameters

id. ID of a child layer of a map.

Description

The removeSubLayer method deletes map child layer.

Example

To execute the example HTML page must contain object of the PP.MapLayer type (see page with description of the MapLayer.addSubLayer) property named layer. Delete child layer of the map with the Visuals identifier:

var parentLayer = getParentLayer();
parentLayer.removeSubLayer("Visuals");
map.draw();

After executing the example child layer of the Visuals map with bar, pie and bubble factors is deleted.

See also:

MapLayer