Skip to content

Commit

Permalink
Improved map addGroundOverlay method
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 authored and mar-v-in committed Aug 4, 2024
1 parent de40837 commit 75fdf64
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)

override fun addGroundOverlay(options: GroundOverlayOptions): IGroundOverlayDelegate? {
Log.d(TAG, "Method: addGroundOverlay")
if (options.width <= 0 && options.height <= 0 && options.bounds == null) {
Log.w(TAG, "addGroundOverlay options Parameters do not meet requirements")
return null
}
val groundOverlay = map?.addGroundOverlay(options.toHms()) ?: return null
val groundOverlayImpl = GroundOverlayImpl(groundOverlay)
groundOverlays[groundOverlayImpl.id] = groundOverlayImpl
Expand Down

0 comments on commit 75fdf64

Please sign in to comment.