【发布时间】:2019-09-02 07:48:06
【问题描述】:
我有一个字段:
{
name: 'location',
title: 'Map',
type: 'geopoint'
}
我使用@sanity/google-maps-input。很棒,但默认本地化是纽约。如何将其更改为其他位置?
【问题讨论】:
标签: sanity
我有一个字段:
{
name: 'location',
title: 'Map',
type: 'geopoint'
}
我使用@sanity/google-maps-input。很棒,但默认本地化是纽约。如何将其更改为其他位置?
【问题讨论】:
标签: sanity
可以在文件config/@sanity/google-maps-input.json中
{
"apiKey": "XYZ",
"defaultZoom": 11,
"defaultLocation": {
"lat": 40.7058254,
"lng": -74.1180863
}
}
【讨论】:
defaultLocation 不会存储在数据存储区的文档中。