是否可以在 sanity.io 中设置默认地理点?
Is it possible to set default geopoint in the sanity.io?
我有一个字段:
{
name: 'location',
title: 'Map',
type: 'geopoint'
}
我用@sanity/google-maps-input
。很棒,但默认本地化是纽约。如何将其更改为其他位置?
文件中可以config/@sanity/google-maps-input.json
{
"apiKey": "XYZ",
"defaultZoom": 11,
"defaultLocation": {
"lat": 40.7058254,
"lng": -74.1180863
}
}
我有一个字段:
{
name: 'location',
title: 'Map',
type: 'geopoint'
}
我用@sanity/google-maps-input
。很棒,但默认本地化是纽约。如何将其更改为其他位置?
文件中可以config/@sanity/google-maps-input.json
{
"apiKey": "XYZ",
"defaultZoom": 11,
"defaultLocation": {
"lat": 40.7058254,
"lng": -74.1180863
}
}