
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@sanity/google-maps-input
Advanced tools
Sanity plugin providing input handlers for geo-related input types using Google Maps
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 and adds support for geopointRadius fields with circle visualization.

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:
[!WARNING] This plugin will replace the default
geopointinput component.
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.
You can also configure additional options:
import {googleMapsInput} from '@sanity/google-maps-input'
export default defineConfig({
// ...
plugins: [
googleMapsInput({
apiKey: 'my-api-key',
defaultZoom: 8,
defaultRadiusZoom: 15, // zoom level for radius editing
defaultLocation: {lat: 59.91273, lng: 10.74609},
defaultRadius: 1000, // for geopointRadius fields
}),
],
})

// In your schema
export default {
name: 'location',
title: 'Location',
type: 'geopoint',
}

// In your schema
export default {
name: 'serviceArea',
title: 'Service Area',
type: 'geopointRadius',
}
The geopointRadius field type extends the basic geopoint with:
Join Sanity’s developer community or ping us on twitter.
MIT-licensed. See LICENSE.
Add a Google Maps API key to .env.local (see .env.example for example format).
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".
FAQs
Sanity plugin providing input handlers for geo-related input types using Google Maps
The npm package @sanity/google-maps-input receives a total of 10,180 weekly downloads. As such, @sanity/google-maps-input popularity was classified as popular.
We found that @sanity/google-maps-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 107 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.