mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
828 stars 255 forks source link

Multiple vector polygons didSelect #348

Closed bryanheitman closed 9 years ago

bryanheitman commented 9 years ago

The object with the highest drawPriority is not being fired when a user taps on a polygon that overlaps other polygons in the background. This is unexpected user behavior.

mousebird commented 9 years ago

I've added the sorting in the selection feedback, but it will only work if kMaplyDrawPriority is set on the vector data itself. That's unlikely to be the case since kMaplyDrawPriority is set in the description dictionary passed into addVectors:

It might be better just to get all the returns with the globeViewController:allSelect:atLoc:onScreen: delegate and sort through them yourself.