Open xinyuluo opened 2 years ago
Thanks for reporting. Can you share a stackblitz or something similar?
@wipfli sure. demo is here: https://stackblitz.com/edit/web-platform-fszogw you will need a maptiler API key to access the basemap. Do you have one?
Does the one for the MapLibre examples work? get_your_own_OpIi9ZULNHzrESv6T2vL
from https://maplibre.org/maplibre-gl-js-docs/example/canvas-source/
Yes it will work. I've just updated stackblitz.
Cool, I can reproduce the bug you reported. Is there any chance that you can fix this behavior? I would be happy to review a pull request...
Maybe one has to loop through features. Here is a different example where I made only one marker being highlighted: https://codesandbox.io/s/hopeful-elion-w04kb6
How is the different example related to the bug? I will try to read code more closely when I have the bandwidth. If i can come up with a fix i will submit a PR
Maybe it is not really related :S
Cool, thanks @xinyuluo !
The code after #118 should be fully typescript, which should help in solving these kind of cases, and if not, refactoring would be a lot easier.
I see that there are promises returning from the geoApi, and there might be a race condition in this case, or a missing marker.remove
call.
It should be fairly easy to solve this I hope.
Sorry for the late response...
Can you reproduce this in the following example page: https://maplibre.org/maplibre-gl-js/docs/examples/geocoder/ I can't reproduce it...
Hi! thanks for the amazing project. I have encountered what I think is a bug, because i think it should be irrelevant to my choice of geocoder (Nominatim).
To reproduce the bug:
Please see attached screen recording for the reference.
Thank you!
https://user-images.githubusercontent.com/25223376/158390405-0ef0a3e5-9a54-490a-ad88-ef80b603d3c2.mp4