0.0.3 • Published 6 months ago

capacitor-apple-maps-native-sdk v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

apple-maps-sdk

The apple-maps-sdk is a Capacitor plugin that provides access to the native iOS Apple Maps SDK for developers to integrate Apple Maps into their mobile applications. This plugin allows users to utilize the native Apple Maps API to display maps, set markers, and adjust the map’s center point directly within their app. Features such as showing and hiding the map, adding custom data points, and checking if the map is visible are included. It also supports managing the current location and other map settings using native iOS functionality. This plugin is perfect for developers who want to leverage the full capabilities of Apple’s native map features on iOS devices.

Install

npm install apple-maps-sdk
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


initAppleMaps()

initAppleMaps() => Promise<{ status: string; }>

Returns: Promise<{ status: string; }>


showAppleMaps()

showAppleMaps() => Promise<{ status: string; }>

Returns: Promise<{ status: string; }>


hideAppleMaps()

hideAppleMaps() => Promise<{ status: string; }>

Returns: Promise<{ status: string; }>


setValuesAppleMaps(...)

setValuesAppleMaps(options: { dataPoints: { latitude: number; longitude: number; label: string; }[]; }) => Promise<{ status: string; }>
ParamType
options{ dataPoints: { latitude: number; longitude: number; label: string; }[]; }

Returns: Promise<{ status: string; }>


setCenterPoint(...)

setCenterPoint(options: { latitude: number; longitude: number; }) => Promise<{ status: string; }>
ParamType
options{ latitude: number; longitude: number; }

Returns: Promise<{ status: string; }>


closeAppleMaps()

closeAppleMaps() => Promise<{ status: string; }>

Returns: Promise<{ status: string; }>


isAppleMapsVisible()

isAppleMapsVisible() => Promise<{ status: number; }>

Returns: Promise<{ status: number; }>


0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago