Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Grsmto/sanity-plugin-mapbox-input

Sanity plugin providing input handlers for geo-related input types using Mapbox
https://github.com/Grsmto/sanity-plugin-mapbox-input

Last synced: 3 months ago
JSON representation

Sanity plugin providing input handlers for geo-related input types using Mapbox

Awesome Lists containing this project

README

        

# sanity-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-input`

- Then write a valid Mapbox API token into `./config/mapbox-input.json`

- `npm start`

## Usage
Use the `geopoint` type in your schema. Ex:

```js
export default {
name: 'article',
title: 'Article',
type: 'document',
fields: [
{
name: 'location',
type: 'geopoint',
title: 'Location',
},
],
}
```

## Screenshot


Sanity Mapbox Input Plugin

## Related projects

https://github.com/rexxars/sanity-plugin-leaflet-input