mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.36k stars 1.33k forks source link

add shape annotation reordering API #1728

Open incanus opened 9 years ago

incanus commented 9 years ago

Punted from #1655. Should be as simple as updating AnnotationManager::orderedShapeAnnotations, which affects the order of shape layers returned from getTile().

akbsteam commented 8 years ago

is there a timeline for this feature?

1ec5 commented 7 years ago

Note that this issue tracks an API for arbitrarily reordering non-view-backed point shape annotations. We don’t currently have a timeline for this feature, but pull requests are more than welcome.

View-backed annotations automatically come to the front as of mapbox/mapbox-gl-native#5264 (iOS) and mapbox/mapbox-gl-native#5294 (Android). It’s also possible to arbitrarily reorder view-backed annotations on iOS: see https://github.com/mapbox/mapbox-gl-native/pull/5287#issue-159247473 for an example. mapbox/mapbox-gl-native#5238 tracks an API for arbitrarily reordering view-backed annotations on Android.

Meanwhile, in the coming Android SDK v4.2.0 (currently in beta) and iOS SDK v3.4.0 (in alpha), the runtime styling API offers an alternative to annotations. You can arbitrarily order a style layer above or below any other style layer, even beneath parts of the base map like labels.

Hopefully the improvements in view-backed annotations and runtime styling meet your needs. If not, we’d love to hear about your specific use cases, to inform the improvements we make going forward.

Edit: Clarified based on https://github.com/mapbox/mapbox-gl-native/issues/1728#issuecomment-250846644.

incanus commented 7 years ago

No, this issue was originally for polygon annotation reordering on the fly.

Xgamefactory commented 5 years ago

these are simple and base features that every map sdks have like google,apple mapkit,heremaps event mapbox ios sdk.

There is ugly alternative for markers like markerView in android but nothing for polylines,polygones. These features should be in Annotation abstract class including visibility method.

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.