Mapbox API
# getApiUrl(service, params = {})
Get the URL used internally for pinging the Mapbox JavaScript API.
The service
value specifies which API URL to use. It may be set to either maps
or search
.
Optionally add params
to the Mapbox API URL.
# getAccessToken()
Get the access token.
# setAccessToken(token)
Override the access token.