Skip to content

Commit

Permalink
fix(google-maps): Apply iconAnchor value to Marker anchor on Android (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Oct 2, 2023
1 parent 3c7e531 commit ef65656
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,10 @@ class CapacitorGoogleMap(
markerOptions.flat(marker.isFlat)
markerOptions.draggable(marker.draggable)
markerOptions.zIndex(marker.zIndex)
if (marker.iconAnchor != null) {
markerOptions.anchor(marker.iconAnchor!!.x, marker.iconAnchor!!.y)
}


if (!marker.iconUrl.isNullOrEmpty()) {
if (this.markerIcons.contains(marker.iconUrl)) {
Expand Down

0 comments on commit ef65656

Please sign in to comment.