Provides some functions with Google maps.
- converseLngLatToGoogleCoordinates
- getGoogleAddrFromArray
- getEachPolygonLngLatStr
- resetCenter
const lngLats = 'lng,lat;lng,lat;lng,lat;';
const googleCoordinates = converseLngLatToGoogleCoordinates(lngLats);
// => [{lat: , lng: }, {lat: , lng: }, {lat: , lng: }, {lat: , lng: }]
const addrs = ['France', 'Île-de-France', 'Paris' ];
const googleAddr = getGoogleAddrFromArray(addrs);
// => Paris,Île-de-France,France
const str = getEachPolygonLngLatStr(polygon);
// lng,lat;lng,lat;lng,lat;lng,lat;lng,lat;
调用谷歌地图的Geocoding Service查询地址的坐标,重新聚焦
resetCenter(map, address, zoom);