Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Grsmto/sanity-plugin-mapbox-input
- Owner: Grsmto
- License: mit
- Created: 2019-08-13T22:41:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T04:30:27.000Z (about 2 years ago)
- Last Synced: 2024-10-12T22:59:17.315Z (4 months ago)
- Language: JavaScript
- Size: 3.27 MB
- Stars: 24
- Watchers: 3
- Forks: 5
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sanity - `sanity-plugin-mapbox-input` - Sanity plugin providing input handlers for geo-related input types using Mapbox. (Plugins)
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
## Related projects
https://github.com/rexxars/sanity-plugin-leaflet-input