removeSubLayer(id: String);
id. ID of a child layer of a map.
The removeSubLayer method deletes map child layer.
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: