Skip to content

Commit 3c7ca0b

Browse files
authored
fix(android,v11): fix anchorX for marker view (#4027)
1 parent 188087a commit 3c7ca0b

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat

1 file changed

+1
-1
lines changed

android/src/main/mapbox-v11-compat/v11/com/rnmapbox/rnmbx/v11compat/Annotation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fun ViewAnnotationOptions.Builder.geometry(point: Geometry): ViewAnnotationOptio
2323

2424
fun ViewAnnotationOptions.Builder.offsets(x: Double, y: Double) {
2525
this.variableAnchors(listOf(
26-
ViewAnnotationAnchorConfig.Builder().anchor(ViewAnnotationAnchor.CENTER).offsetY(x).offsetY(y).build()
26+
ViewAnnotationAnchorConfig.Builder().anchor(ViewAnnotationAnchor.CENTER).offsetX(x).offsetY(y).build()
2727
))
2828
}
2929

0 commit comments

Comments
 (0)