Constructor
new MapElement()
Properties:
Name | Type | Description |
---|---|---|
lon |
Number | The longitude of the map center |
lat |
Number | The latitude of the map center |
zoom |
Number | The zoom level of the map |
pitch |
Number | The pitch of the map |
bearing |
Number | The bearing of the map |
mapstyle |
String | The map style (mapbox://styles/mapbox/streets-v11) |
accessToken |
String | The map access token |
- Source:
Example
<js-map accessToken="....."></js-map>