Map.Add

Add(VectorLayer, bool)

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

public void Add(VectorLayer layer, bool keepOpen = false)
ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
keepOpenBooleantrue to leave the vector layer open after the Map object is disposed; false to dispose the layer.

Exceptions

exceptioncondition
ArgumentNullExceptionLayer is null.

See Also


Add(VectorLayer, VectorSymbolizer, bool)

Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.

public void Add(VectorLayer layer, VectorSymbolizer symbolizer, bool keepOpen = false)
ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.
keepOpenBooleantrue to leave the vector layer open after the Map object is disposed; false to dispose the layer.

Exceptions

exceptioncondition
ArgumentNullExceptionLayer is null.

See Also


Add(VectorLayer, VectorSymbolizer, Labeling, bool)

Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.

public void Add(VectorLayer layer, VectorSymbolizer symbolizer, Labeling labeling, 
    bool keepOpen = false)
ParameterTypeDescription
layerVectorLayerA vector layer to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.
labelingLabelingLabeling to use to label features in layer. If null, default NullLabeling will be used.
keepOpenBooleantrue to leave the layer open after the Map object is disposed; otherwise, false.

Exceptions

exceptioncondition
ArgumentNullExceptionLayer is null.

See Also


Add(FeaturesSequence)

Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.

public void Add(FeaturesSequence featuresSequence)
ParameterTypeDescription
featuresSequenceFeaturesSequenceA features sequence to represent by VectorMapLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionFeatures sequence is null.

See Also


Add(FeaturesSequence, VectorSymbolizer)

Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.

public void Add(FeaturesSequence featuresSequence, VectorSymbolizer symbolizer)
ParameterTypeDescription
featuresSequenceFeaturesSequenceA features sequence to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering. If null, default symbolizer is used.

Exceptions

exceptioncondition
ArgumentNullExceptionFeatures sequence is null.

See Also


Add(FeaturesSequence, VectorSymbolizer, Labeling)

Creates and adds a VectorMapLayer to the map. Layers are rendered in addition order.

public void Add(FeaturesSequence featuresSequence, VectorSymbolizer symbolizer, Labeling labeling)
ParameterTypeDescription
featuresSequenceFeaturesSequenceA features sequence to represent by VectorMapLayer.
symbolizerVectorSymbolizerA symbolizer to use for rendering.
labelingLabelingLabeling to use to label features in layer. If null, NullLabeling will be used.

Exceptions

exceptioncondition
ArgumentNullExceptionFeatures sequence is null.

See Also


Add(MapLayer)

Adds a layer to the map. Layers are rendered in addition order.

public void Add(MapLayer mapLayer)
ParameterTypeDescription
mapLayerMapLayerThe layer to be added.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.

See Also


Add(RasterLayer, RasterColorizer, bool)

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

public void Add(RasterLayer layer, RasterColorizer colorizer = null, bool keepOpen = false)
ParameterTypeDescription
layerRasterLayerA vector layer to represent by RasterLayer.
colorizerRasterColorizerA colorizer to use for rendering. If null, default colorizer is used.
keepOpenBooleantrue to leave the raster layer open after the Map object is disposed; false to dispose the layer.

Exceptions

exceptioncondition
ArgumentNullExceptionLayer is null.

See Also