MapAdd Method (VectorLayer, VectorSymbolizer, Labeling, Boolean)

Creates and adds a VectorMapLayer 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,
	VectorSymbolizer symbolizer,
	Labeling labeling,
	bool keepOpen = false
)

Parameters

layer
Type: Aspose.GisVectorLayer
A vector layer to represent by VectorMapLayer.
symbolizer
Type: Aspose.Gis.Rendering.SymbolizersVectorSymbolizer
A symbolizer to use for rendering. If , default symbolizer is used.
labeling
Type: Aspose.Gis.Rendering.LabelingsLabeling
Labeling to use to label features in layer. If , default NullLabeling will be used.
keepOpen (Optional)
Type: SystemBoolean
to leave the layer open after the Map object is disposed; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullExceptionLayer is .
See Also