簡體   English   中英

Mapbox Web API - 如何獲取搜索結果的經緯度?

[英]Mapbox Web API - How to get the latitude and longitude of the search result?

我在我的網站上使用Mapbox 一切正常,但我正在尋找的一件事是如何獲得Mapbox 中搜索結果/位置的緯度經度

我沒有找到任何相關事件來實現我想要的目標,也沒有在這里找到

我正在使用Mapbox Web API Javascript。 謝謝!!!

不能說我已經使用過 API,但這是我的想法:

 map.on('sourcedata', function(e){ if(e.isSourceLoaded){ console.log(e.coord); } });

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM