arlas-wui-toolkit / Exports / ArlasMapService
Class: ArlasMapService
This service provides methods to apply on the mapboxgl Map object
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ArlasMapService(collaborativeSearchService
)
Parameters
Name | Type |
---|---|
collaborativeSearchService |
ArlasCollaborativesearchService |
Defined in
projects/arlas-toolkit/src/lib/services/map/map.service.ts:36
Properties
map
• map: Map
Defined in
projects/arlas-toolkit/src/lib/services/map/map.service.ts:34
Methods
setMap
▸ setMap(map
): void
Parameters
Name | Type | Description |
---|---|---|
map |
Map |
mapbox map instance |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/services/map/map.service.ts:68
zoomToData
▸ zoomToData(collection
, geoPointField
, map
, paddingPercentage?
): void
Description
zooms to the data extent. If 'map' parameter is not defined, then this function uses the 'map' attribute
Parameters
Name | Type | Description |
---|---|---|
collection |
string |
- |
geoPointField |
string |
geo-point field used to get the bounding box of the data |
map |
Map |
Map object of mapboxgl |
paddingPercentage? |
number |
a percentage of the extent's height and width that is added as a padding to bbox of data (between 0 and 1). It allows to have some context around data |
Returns
void
Implementation of
Defined in
projects/arlas-toolkit/src/lib/services/map/map.service.ts:46