File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ export abstract class MapViewBase extends View implements MapView {
359
359
}
360
360
361
361
notifyIndoorLevelActivatedEvent ( activateLevel : IndoorLevel ) {
362
- let args : IndoorLevelActivatedEventData = { eventName : MapViewBase . indoorBuildingFocusedEvent , object : this , activateLevel : activateLevel } ;
362
+ let args : IndoorLevelActivatedEventData = { eventName : MapViewBase . indoorLevelActivatedEvent , object : this , activateLevel : activateLevel } ;
363
363
this . notify ( args ) ;
364
364
}
365
365
}
Original file line number Diff line number Diff line change @@ -273,29 +273,34 @@ export class MapView extends MapViewBase {
273
273
protected _markers : Array < Marker > = new Array < Marker > ( ) ;
274
274
275
275
private _delegate : MapViewDelegateImpl ;
276
+ private _indoorDelegate :IndoorDisplayDelegateImpl ;
276
277
277
278
constructor ( ) {
278
279
super ( ) ;
279
280
280
281
this . nativeView = GMSMapView . mapWithFrameCamera ( CGRectZero , this . _createCameraPosition ( ) ) ;
281
282
this . _delegate = MapViewDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
283
+ this . _indoorDelegate = IndoorDisplayDelegateImpl . initWithOwner ( new WeakRef ( this ) ) ;
282
284
this . updatePadding ( ) ;
283
285
}
284
286
285
287
public onLoaded ( ) {
286
288
super . onLoaded ( ) ;
287
289
this . nativeView . delegate = this . _delegate ;
290
+ this . nativeView . indoorDisplay . delegate = this . _indoorDelegate ;
288
291
this . notifyMapReady ( ) ;
289
292
}
290
293
291
294
public onUnloaded ( ) {
292
295
this . nativeView . delegate = null ;
296
+ this . nativeView . indoorDisplay . delegate = null ;
293
297
super . onUnloaded ( ) ;
294
298
}
295
299
296
300
public disposeNativeView ( ) {
297
301
this . _markers = null ;
298
302
this . _delegate = null ;
303
+ this . _indoorDelegate = null ;
299
304
super . disposeNativeView ( ) ;
300
305
GC ( ) ;
301
306
} ;
You can’t perform that action at this time.
0 commit comments