mapbox-maps-android
mapbox-maps-android copied to clipboard
the view shift when language set to ar(RTL layout) and use viewAnnotationManager
Environment
- Android OS version: 32
- Devices affected: Vivo
- Maps SDK Version: 10.6.0
Observed behavior and steps to reproduce
set the system language to ar, and the view will shift. (the view is correc when system language is English)
the implement:
val viewAnnotationManager = mapView.viewAnnotationManager val formatViewTag = formatViewTag(tag) val options = viewAnnotationOptions { geometry(Point.fromLngLat(point.longitude, point.latitude)) allowOverlap(true) } if (viewMaps.containsKey(formatViewTag)) { val view = viewMaps[formatViewTag] viewAnnotationManager.updateViewAnnotation(view!!, options) return view } val viewAnnotation = viewAnnotationManager.addViewAnnotation( resId = layoutRes, options = options ) viewMaps[formatViewTag] = viewAnnotation return viewAnnotation
Expected behavior
the view in correct point
Notes / preliminary analysis
I think the viewAnnotationManager not support RTL well
Additional links and references
Thanks for reporting, guess you're correct and there's indeed no support yet. Just to be sure: can you please record a video and add it to the issue description how does it look now without RTL support?
I record the video: https://user-images.githubusercontent.com/47050849/189618007-3e46cb82-82cb-4191-9657-2971b741fd09.mp4
Any progress in this issue ?