2

我有一个领域:

{
  name: 'location',
  title: 'Map',
  type: 'geopoint'
}

我用@sanity/google-maps-input. 很棒,但默认本地化是纽约。如何将其更改为另一个位置?

4

1 回答 1

2

可以在文件中config/@sanity/google-maps-input.json

{
  "apiKey": "XYZ",
  "defaultZoom": 11,
  "defaultLocation": {
    "lat": 40.7058254,
    "lng": -74.1180863
  }
}

于 2019-04-11T16:17:56.803 回答