Skip to content

Capacitor v6 plugin for launching maps (inspired by map_launcher for Flutter) - WIP

Notifications You must be signed in to change notification settings

razorness/capacitor-map-launcher

Repository files navigation

capacitor-map-launcher

Opens coordinates in native map apps

Install

npm install capacitor-map-launcher
npx cap sync

API

getInstalledMaps()

getInstalledMaps() => Promise<{ value: MapModel[]; }>

Returns: Promise<{ value: MapModel[]; }>


isMapAvailable(...)

isMapAvailable(options: { mapType: MapType; }) => Promise<{ value: MapModel; }>
Param Type
options { mapType: MapType; }

Returns: Promise<{ value: MapModel; }>


showMarker(...)

showMarker(options: { mapType: MapType; url: string; lat: number; lon: number; title?: string; description?: string; }) => Promise<void>
Param Type
options { mapType: MapType; url: string; lat: number; lon: number; title?: string; description?: string; }

Interfaces

MapModel

Prop Type
mapType MapType
mapName string
packageName string
urlPrefix string

Enums

MapType

Members Value
APPLE 'apple'
GOOGLE 'google'
GOOGLE_GO 'googleGo'
AMAP 'amap'
BAIDU 'baidu'
WAZE 'waze'
YANDEX_MAPS 'yandexMaps'
YANDEX_NAVI 'yandexNavi'
CITYMAPPER 'citymapper'
MAPSWITHME 'mapswithme'
OSMAND 'osmand'
OSMANDPLUS 'osmandplus'
DOUBLE_GIS 'doubleGis'
TENCENT 'tencent'
HERE 'here'
PETAL 'petal'
TOMTOMGO 'tomtomgo'
TOMTOMGOFLEET 'tomtomgofleet'
COPILOT 'copilot'
SYGIC_TRUCK 'sygicTruck'
FLITSMEISTER 'flitsmeister'
TRUCKMEISTER 'truckmeister'
NAVER 'naver'
KAKAO 'kakao'
TMAP 'tmap'
MAPY_CZ 'mapyCz'