Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

水點的讀取改由定位點所在位置方圓一定範圍 #5

Open
yellowsoar opened this issue Nov 6, 2018 · 2 comments
Open

水點的讀取改由定位點所在位置方圓一定範圍 #5

yellowsoar opened this issue Nov 6, 2018 · 2 comments

Comments

@yellowsoar
Copy link

目前水點的讀取是直接讀取整個台灣地區,
如果改成讀取定位點所在位置的方圓一定範圍,
則將可擴大飲水地圖的適用性。

@yellowsoar
Copy link
Author

以方圓一公里為例,原本query 的部分要改:
node["amenity"="drinking_water"](around:1000,latitude,longitude);out body;out skel qt;
如果是在移動結束後才 query...
可能會因為歐洲伺服器傳過來要很久而導致使用者一直移來移去,
然後送出多次 query,接著就可能被 ban 了,
同理縮放也是一樣的情況...
所以如果考慮不要大改的作法,
應該是在這兩種動作結束後要暫停移動或縮放功能,
然後等 api response 後才可以在移動..
我有懂 @pm5 為什麼說可能要大改了。囧

@yellowsoar
Copy link
Author

改用新的 leaflet-overpass-layer 可能有點幫助,
beforeRequest , afterRequest & onSuccess
https://github.com/GuillaumeAmat/leaflet-overpass-layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant