A mixin object containing methods related to map layers
- Source:
Methods
(method) createPointCollection(data, projection) → {Object}
Creates a point collection feature from the given data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The data used to create the point collection. |
projection |
string | The projection used for transforming coordinates. |
- Source:
Returns:
- The created point collection feature.
- Type
- Object
(method) getIndicatorValues() → {Promise.<void>}
Fetches and sets the indicator values for the map.
- Source:
Returns:
A promise that resolves when all asynchronous operations are complete.
- Type
- Promise.<void>
(async, method) setBaseLayer() → {Promise.<void>}
Sets the base layer of the map based on the selectedBaseLayer value. If selectedBaseLayer is 1, sets the base layer source to OpenStreetMap (OSM). If selectedBaseLayer is not 1, sets the base layer source to Bing Maps with the specified key and imagerySet. Updates the map size and forces a component update.
- Source:
Returns:
- Type
- Promise.<void>
(method) setBoundariesLayer() → {Promise.<void>}
Sets the boundaries layer on the map based on the selected NUTS level. If the NUTS level is greater than or equal to 0, it makes an asynchronous request to retrieve the boundaries data. The retrieved data is then added to the boundaries source of the map. If the NUTS level is less than 0, the boundaries source is cleared.
- Source:
Returns:
A promise that resolves when the boundaries layer is set.
- Type
- Promise.<void>
(method) setCustomRestrictedLayer()
- Source:
(method) setMapTilerLayer()
- Source:
(async, method) setPointLayer() → {Promise.<void>}
Sets the point layer on the map.
- Source:
Returns:
A promise that resolves when the point layer is set.
- Type
- Promise.<void>
(method) setShapeLayer()
- Source:
(async, method) setTileLayer() → {Promise.<void>}
Sets the tile layer containig GeoTiff sources for the map.
- Source:
Returns:
A promise that resolves when the tile layer is set.
- Type
- Promise.<void>
(async, function) setShapeLayer() → {Promise.<void>}
Clears the shape source and adds features to it based on the selected shape.
- Source:
Returns:
A promise that resolves when the shape layer is set.
- Type
- Promise.<void>