mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
322 stars 8 forks source link

still cannot draw RMPolyline under the user blue dot #626

Closed andreinechaev closed 9 years ago

andreinechaev commented 9 years ago

ios simulator screen shot may 4 2015 8 46 02 pm

I tried to attach zPositions to different types of annotations but without stable result. It seems that every time it redraws the map and all annotations on it. And somehow adjust default zPositions to layers. iOS8.0-8.3 MapBox 1.6.1

andreinechaev commented 9 years ago

I found a method, which should be overridden for sorting annotation layers. Closing the issue.

incanus commented 9 years ago

Yep, you want the delegate method:

https://www.mapbox.com/mapbox-ios-sdk/api/Protocols/RMMapViewDelegate.html#//api/name/annotationSortingComparatorForMapView: