capacitor-mapbox-ymg
v0.0.13
Published
Show a truly native mapbox map.
Readme
Install
npm install capacitor-mapbox-ymg
npx cap syncAPI
initMap(...)resize()flyTo(...)addMarker(...)removeMarker(...)fitBounds(...)addSource(...)addLayer(...)reset()hide()show()updateMarker(...)downloadMap(...)showMyPosition()
initMap(...)
initMap(options: any) => Promise<{ value: string; }>| Param | Type |
| ------------- | ---------------- |
| options | any |
Returns: Promise<{ value: string; }>
resize()
resize() => Promise<void>flyTo(...)
flyTo(options: any) => Promise<void>| Param | Type |
| ------------- | ---------------- |
| options | any |
addMarker(...)
addMarker(marker: any) => Promise<void>| Param | Type |
| ------------ | ---------------- |
| marker | any |
removeMarker(...)
removeMarker(marker: any) => Promise<void>| Param | Type |
| ------------ | ---------------- |
| marker | any |
fitBounds(...)
fitBounds(marker: any) => Promise<void>| Param | Type |
| ------------ | ---------------- |
| marker | any |
addSource(...)
addSource(data: any) => Promise<void>| Param | Type |
| ---------- | ---------------- |
| data | any |
addLayer(...)
addLayer(data: any) => Promise<void>| Param | Type |
| ---------- | ---------------- |
| data | any |
reset()
reset() => Promise<void>hide()
hide() => Promise<void>show()
show() => Promise<void>updateMarker(...)
updateMarker(marker: any) => Promise<void>| Param | Type |
| ------------ | ---------------- |
| marker | any |
downloadMap(...)
downloadMap(data: any) => Promise<void>| Param | Type |
| ---------- | ---------------- |
| data | any |
showMyPosition()
showMyPosition() => Promise<void>