sanity-plugin-mapkit-input

1.0.1 • Public • Published

MapKit Input for Sanity

Alternative geoinput plugin for Sanity, powered by Apple MapKit JS. Has better privacy than the alternatives. It's good enough that DuckDuckGo switched from OpenStreetMap/Bing/Google to only use Apple Maps.

Screenshot

Usage

Add mapkit-input.json to your config/ folder and add the following config:

{
  "token": "MUST-BE-SPECIFIED",
  "color": "#ACF2BF",
  "glyphText": "🥕",
  "defaultCoordinate": {
    "lat": 59.91273,
    "lng": 10.74609
  }
}

Generate Token

It's a bit complicated to generate the token. Please watch this WWDC presentation to see how to generate it: Getting and Using a MapKit JS Key. Maybe I'll make this easier in the future.

Readme

Keywords

none

Package Sidebar

Install

npm i sanity-plugin-mapkit-input

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

233 kB

Total Files

10

Last publish

Collaborators

  • eivindml