@@ -253,6 +253,11 @@ export function intoNativePolylineOptions(options: PolylineOptions) {
253
253
export function intoNativeGroundOverlayOptions ( options : GroundOverlayOptions ) {
254
254
const opts = new com . google . android . gms . maps . model . GroundOverlayOptions ( ) ;
255
255
256
+ if ( options ?. position ) {
257
+ const coords = < Coordinate > options . position ;
258
+ opts . position ( new com . google . android . gms . maps . model . LatLng ( coords . lat , coords . lng ) , options . width ) ;
259
+ }
260
+
256
261
if ( typeof options ?. width === 'number' ) {
257
262
opts . position ( opts . getLocation ( ) , options . width ) ;
258
263
}
@@ -261,6 +266,13 @@ export function intoNativeGroundOverlayOptions(options: GroundOverlayOptions) {
261
266
opts . position ( opts . getLocation ( ) , opts . getWidth ( ) , options . height ) ;
262
267
}
263
268
269
+ if ( options ?. bounds ) {
270
+ opts . positionFromBounds ( new com . google . android . gms . maps . model . LatLngBounds (
271
+ new com . google . android . gms . maps . model . LatLng ( options . bounds . southwest . lat , options . bounds . southwest . lng ) ,
272
+ new com . google . android . gms . maps . model . LatLng ( options . bounds . northeast . lat , options . bounds . northeast . lng )
273
+ ) ) ;
274
+ }
275
+
264
276
if ( typeof options ?. transparency ) {
265
277
opts . transparency ( options . transparency ) ;
266
278
}
@@ -273,11 +285,6 @@ export function intoNativeGroundOverlayOptions(options: GroundOverlayOptions) {
273
285
opts . clickable ( options . tappable ) ;
274
286
}
275
287
276
- if ( options ?. position ) {
277
- const coords = < Coordinate > options . position ;
278
- opts . position ( new com . google . android . gms . maps . model . LatLng ( coords . lat , coords . lng ) , opts . getWidth ( ) ) ;
279
- }
280
-
281
288
if ( typeof options ?. tappable === 'boolean' ) {
282
289
opts . clickable ( options . tappable ) ;
283
290
}
0 commit comments