0.0.13 • Published 2 years ago
Install
npm install capacitor-mapbox-ymg
npx cap sync
API
initMap(...)
initMap(options: any) => Promise<{ value: string; }>
Returns: Promise<{ value: string; }>
resize()
resize() => Promise<void>
flyTo(...)
flyTo(options: any) => Promise<void>
addMarker(...)
addMarker(marker: any) => Promise<void>
removeMarker(...)
removeMarker(marker: any) => Promise<void>
fitBounds(...)
fitBounds(marker: any) => Promise<void>
addSource(...)
addSource(data: any) => Promise<void>
addLayer(...)
addLayer(data: any) => Promise<void>
reset()
reset() => Promise<void>
hide()
hide() => Promise<void>
show()
show() => Promise<void>
updateMarker(...)
updateMarker(marker: any) => Promise<void>
downloadMap(...)
downloadMap(data: any) => Promise<void>
showMyPosition()
showMyPosition() => Promise<void>