Skip to content

How to implement tab, longTab on Marker? #204

Answered by pamtbaau
pamtbaau asked this question in Q&A
Discussion options

You must be logged in to vote

It's actually not a fork but written completely from scratch.

Sorry for the bad assumption on my part. Even more kudos to you...

you can listen for those events on the map and use queryLayers()

I've tried that, but the MarkerLayer is never found. Only countries-fill, countries-boundary, coastline. Or is that because I add the MarkerLayer inside the map.children list?

Then, you can iterate though your markers to find the one that is closest to the touched point.

That would mean a Marker can be selected even when remotely clicked on the Map. I only want the marker to be selected when clicked on top of it. I therefor create a Polygon for the Marker and test if the mouse location is ins…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@josxha
Comment options

Answer selected by josxha
Comment options

You must be logged in to vote
1 reply
@josxha
Comment options

Comment options

You must be logged in to vote
3 replies
@josxha
Comment options

@pamtbaau
Comment options

@josxha
Comment options

Comment options

You must be logged in to vote
1 reply
@josxha
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants