1.0.1 • Published 3 years ago

sanity-plugin-mapkit-input v1.0.1

Weekly downloads
3
License
MIT
Repository
-
Last release
3 years ago

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.