sanity-plugin-mapkit-input

v1.0.1
A Apple MapKit geoinput plugin for your Sanity Studio

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.

npm i sanity-plugin-mapkit-input

Metadata

  • MIT
  • Whatever
  • Eivind LindbrĂ„ten
  • released 1/22/2021

Downloads

Maintainers