MapAdd Method (RasterLayer, RasterColorizer, Boolean)

Creates a RasterMapLayer with default colorizer and adds it to the map.

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

Parameters

layer
Type: Aspose.Gis.RasterRasterLayer
A vector layer to represent by RasterLayer.
colorizer (Optional)
Type: Aspose.Gis.Rendering.ColorizersRasterColorizer
A colorizer to use for rendering. If , default colorizer is used.
keepOpen (Optional)
Type: SystemBoolean
to leave the raster layer open after the Map object is disposed; to dispose the layer.
Exceptions
ExceptionCondition
ArgumentNullExceptionLayer is .
See Also