Mapbox Geocoder似乎位于纽约市地址错误的位置

时间:2016-02-16 02:17:58

标签: mapbox mapbox-gl mapbox-gl-js

我正在使用https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/

map.addControl(new mapboxgl.Geocoder());

但是当我尝试纽约市时,地图中心位置不正确。

我希望地图重新定位时地址是地图的中心。

但我发现这是不正确的,有时是很多

例如,对于" 1百老汇,纽约,纽约"我看到(如果没有平移和缩放,1 Broadway甚至都看不到)

是否有更好的地理编码器示例可以正常用于NYC地址?

enter image description here

但是正确的地图是这样的:

enter image description here

它似乎可以在其他地方使用

Moscone Center SF(正确)

enter image description here

怀特豪斯(正确)

enter image description here

0 个答案:

没有答案