Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.48 KB

Vietmap.md

File metadata and controls

53 lines (38 loc) · 1.48 KB

Vietmap

methods

setApiKey(apiKey)

arguments
Name Type Required Description
apiKey String Yes Provide null value like this code: Vietmap.setApiKey(null)
Description

sets the apiKey, which is not required when using Vietmap tiles

addCustomHeader(headerName, headerValue)

arguments
Name Type Required Description
headerName String Yes name for customHeader
headerValue String Yes value for customHeader
Description

also see CustomHttpHeaders

removeCustomHeader(headerName)

arguments
Name Type Required Description
headerName String Yes name of customHeader to be removed
Description

also see CustomHttpHeaders

Android only

requestAndroidLocationPermissions()

Description

Opens Android Location Permission prompt. Returns a Promise which resolves into a boolean. Either permission was granted or denied.

setConnected(connected)

arguments
Name Type Required Description
connected Boolean Yes whether or not the SDK should assume it is online

Description

If you want to fully block map tile requests over the network, such as for a low-data / offline application.