This is a Sanity Studio v3 plugin. For the v2 version, please refer to the v2-branch.
Plugin for Sanity Studio providing input handlers for geo-related input types using Google Maps.
This plugin will replace the default geopoint
input component.
These will be re-added well before Studio V3 GA.
In your studio folder, run:
npm install --save @sanity/google-maps-input
or
yarn add @sanity/google-maps-input
Add it as a plugin in sanity.config.ts (or .js), with a valid Google Maps API key:
import {googleMapsInput} from '@sanity/google-maps-input'
export default defineConfig({
// ...
plugins: [
googleMapsInput({
apiKey: 'my-api-key',
}),
],
})
Ensure that the key has access to:
And that the key allows web-access from the Studio URL(s) you are using the plugin in.
Note: This plugin will replace the default geopoint
input component.
Join Sanity’s developer community or ping us on twitter.
MIT-licensed. See LICENSE.
This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.
See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.
Run "CI & Release" workflow. Make sure to select the main branch and check "Release new version".