# ChartMapLayer

Describes a non-data map layer rendered behind or above a region map.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapLayer.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L43)

**Modifiers**

sealed

Describes a non-data map layer rendered behind or above a region map.

## Inheritance

- object
- ChartMapLayer

## Usage

 Explore 10 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [ChartMapOptions.BaseLayers](/api/chartforgex-core-chartmapoptions/#property-baselayers)
- Property [ChartMapOptions.OverlayLayers](/api/chartforgex-core-chartmapoptions/#property-overlaylayers)

### Accepted by parameters 8

- Extension method [ChartMapOptions.BaseLayer](/api/chartforgex-core-chartmapoptions/#extension-baselayer-chartforgex-core-chartmapoptions-chartforgex-core-chartmaplayer) parameter `item`
- Extension method [ChartMapOptions.BaseLayers](/api/chartforgex-core-chartmapoptions/#extension-baselayers-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmaplayer) parameter `items`
- Extension method [ChartMapOptions.OverlayLayer](/api/chartforgex-core-chartmapoptions/#extension-overlaylayer-chartforgex-core-chartmapoptions-chartforgex-core-chartmaplayer) parameter `item`
- Extension method [ChartMapOptions.OverlayLayers](/api/chartforgex-core-chartmapoptions/#extension-overlaylayers-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmaplayer) parameter `items`
- Method [ChartMapOptionsFluent.BaseLayer](/api/chartforgex-core-chartmapoptionsfluent/#method-baselayer-chartforgex-core-chartmapoptions-chartforgex-core-chartmaplayer) parameter `item`
- Method [ChartMapOptionsFluent.BaseLayers](/api/chartforgex-core-chartmapoptionsfluent/#method-baselayers-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmaplayer) parameter `items`
- Method [ChartMapOptionsFluent.OverlayLayer](/api/chartforgex-core-chartmapoptionsfluent/#method-overlaylayer-chartforgex-core-chartmapoptions-chartforgex-core-chartmaplayer) parameter `item`
- Method [ChartMapOptionsFluent.OverlayLayers](/api/chartforgex-core-chartmapoptionsfluent/#method-overlaylayers-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmaplayer) parameter `items`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartMapLayer(ChartMapDefinition definition, ChartColor? fillColor, ChartColor? strokeColor, double strokeWidth, string role)` [#](#constructor-ctor-chartforgex-core-chartmapdefinition-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-primitives-chartcolor-double-string) 

[ChartMapLayer.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L43)

Initializes a new instance of the [ChartMapLayer](/api/chartforgex-core-chartmaplayer/) class.

Parameters

**definition ChartForgeX.Core.ChartMapDefinition required**

The map geometry definition.

**fillColor ChartForgeX.Primitives.ChartColor? required**

The optional fill color.

**strokeColor ChartForgeX.Primitives.ChartColor? required**

The optional stroke color.

**strokeWidth double required**

The stroke width in rendered pixels.

**role string required**

The semantic role used in SVG metadata.

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public ChartMapDefinition Definition { get; }` [#](#property-definition) 

[ChartMapLayer.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L13)

Gets the map geometry definition rendered by this layer.

 `public ChartColor? FillColor { get; }` [#](#property-fillcolor) 

[ChartMapLayer.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L18)

Gets the optional fill color. Null renders the layer without fill.

 `public ChartColor? StrokeColor { get; }` [#](#property-strokecolor) 

[ChartMapLayer.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L23)

Gets the optional stroke color. Null renders the layer without stroke.

 `public double StrokeWidth { get; }` [#](#property-strokewidth) 

[ChartMapLayer.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L28)

Gets the stroke width in rendered pixels.

 `public string Role { get; }` [#](#property-role) 

[ChartMapLayer.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapLayer.cs#L33)

Gets the semantic role used in SVG metadata.

<!-- PowerForge markdown artifact sha256:3E96339AAA54E2084DD141F6D6FA0C334FB304CC67E833BC8BCFE184A44B5EDF -->
