Outdooractive / route-me

Open source map library for iOS
Other
122 stars 400 forks source link

marker label tap fix #64

Closed incanus closed 12 years ago

incanus commented 12 years ago

This should fix #6 marker label taps. The problem was that RMMapOverlayView's override of pointInside:withEvent:, which keeps the overlay view from registering taps in empty, non-overlay areas, was only registering for RMMarker taps. This fix uses the internal findAnnotationInLayer: to get at the root annotation being referenced (whether tapping marker or label), then moves on from there.

It also still checks that the annotation's layer is an RMMarker so that path & circle, etc. taps still do not register.