Skip to content
Discussion options

You must be logged in to vote

If the markers are part of the style-spec (not html markers) than you need to queryRenderFeautre in the callback of the map.on('click', ...) event.
Once you get the feature and some properties you saved with it you can call whatever UI framework you use to create a toast/bottom banner.
If the markers are html markers then this is a "regular" html interaction you need to implement.
Hope that helps.
The following is an example of HTML markers:
https://israelhiking.osm.org.il/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dariokueffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants