sanity-plugin-mapkit-input
v1.0.1
Published
A Apple MapKit geoinput plugin for your Sanity Studio
Downloads
1
Readme
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.
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.