MapAdd Method (VectorLayer, Boolean)

Creates a VectorMapLayer with default symbolizer and adds it to the map. Layers are rendered in addition order.

Namespace:  Aspose.Gis.Rendering
Assembly:  Aspose.GIS (in Aspose.GIS.dll) Version: 21.10.0.0 (21.10)
Syntax
public void Add(
	VectorLayer layer,
	bool keepOpen = false
)

Parameters

layer
Type: Aspose.GisVectorLayer
A vector layer to represent by VectorMapLayer.
keepOpen (Optional)
Type: SystemBoolean
to leave the vector layer open after the Map object is disposed; to dispose the layer.
Exceptions
ExceptionCondition
ArgumentNullExceptionLayer is .
See Also