Outdooractive / route-me

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

annotation.enable enhancement from mapbox/mapbox-ios-sdk#141 #112

Closed incanus closed 11 years ago

incanus commented 11 years ago

This brings over some enhancements to annotation touch events.

Previously, annotation.enable could be set, but wouldn't do anything. This makes the overlay layer disregard the annotation in hit testing (via hiding).

It also makes some tweaks to the user location stuff so that the tracking halo and accuracy circle can't be touched, as well as ensures that the user location layer can register touches in the event of compass tracking, since a dummy user location image view is actually displayed and the annotation layer is not.

This lets the dev disable any annotations from touches while still showing them, as well as disable touches to the user location by using mapView.userLocation.enabled = NO if they so choose (since it works like any other annotation).