Mapbox
Studio v2
This plugin only works with an older version of Sanity Studio (v2), which is deprecated.
Sanity plugin providing input handlers for geo-related input types using Mapbox
v2 install command (deprecated)
sanity install mapbox-inputsanity-plugin-mapbox-input
Sanity plugin providing input handlers for geo-related input types using Mapbox.
This plugin replaces the native Sanity geopoint type.
:warning: The plugin doesn't seem to work anymore due to some incompatibility with latest Sanity Studio. Please see sanity-plugin-leaflet-input as an alternative. :warning:
Installation
sanity install mapbox-inputThen write a valid Mapbox API token into
./config/mapbox-input.jsonnpm start
Usage
Use the geopoint type in your schema. Ex:
export default {
name: 'article',
title: 'Article',
type: 'document',
fields: [
{
name: 'location',
type: 'geopoint',
title: 'Location',
},
],
}Screenshot