mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

the view shift when language set to ar(RTL layout) and use viewAnnotationManager

Open hanyang6278 opened this issue 3 years ago • 3 comments

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

hanyang6278 avatar Sep 09 '22 12:09 hanyang6278

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?

kiryldz avatar Sep 12 '22 08:09 kiryldz

I record the video: https://user-images.githubusercontent.com/47050849/189618007-3e46cb82-82cb-4191-9657-2971b741fd09.mp4

hanyang6278 avatar Sep 12 '22 09:09 hanyang6278

Any progress in this issue ?

ghraibeh avatar May 21 '23 11:05 ghraibeh