Skip to content

Commit

Permalink
fixed <real-time weather> & <Meteoroloji> app map layer display issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored Feb 16, 2024
1 parent 1b34bbd commit e4c1c5a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ fun GmsGroundOverlayOptions.toHms(): GroundOverlayOptions {
.image(image.remoteObject.unwrap())
.visible(isVisible)
.zIndex(zIndex)
if (height > 0) {
groundOverlayOptions.position(location.toHms(), width, height)
} else {
groundOverlayOptions.position(location.toHms(), width)
location?.let {
if (height > 0) {
groundOverlayOptions.position(it.toHms(), width, height)
} else {
groundOverlayOptions.position(it.toHms(), width)
}
}
bounds?.let { groundOverlayOptions.positionFromBounds(it.toHms()) }
return groundOverlayOptions
Expand Down

0 comments on commit e4c1c5a

Please sign in to comment.