11import {
22 MapView , Position , Marker , Shape , Polyline , Polygon , Projection ,
33 Circle , Camera , MarkerEventData , ShapeEventData , VisibleRegion ,
4- CameraEventData , PositionEventData , Bounds , Style , UISettings
4+ CameraEventData , PositionEventData , Bounds , Style , UISettings , IndoorBuilding , IndoorLevel ,
5+ IndoorLevelActivatedEventData , BuildingFocusedEventData
56} from "./map-view" ;
67import { Point , View , Template , KeyedTemplate } from "tns-core-modules/ui/core/view" ;
78import { Image } from "tns-core-modules/ui/image" ;
@@ -162,7 +163,7 @@ export abstract class MapViewBase extends View implements MapView {
162163 }
163164 return undefined ;
164165 }
165- }
166+ } ;
166167 public _infoWindowTemplates = new Array < KeyedTemplate > ( ) ;
167168
168169 public projection : Projection ;
@@ -181,6 +182,8 @@ export abstract class MapViewBase extends View implements MapView {
181182 public static cameraChangedEvent : string = "cameraChanged" ;
182183 public static cameraMoveEvent : string = "cameraMove" ;
183184 public static myLocationTappedEvent : string = "myLocationTapped" ;
185+ public static indoorBuildingFocusedEvent : string = "indoorBuildingFocused" ;
186+ public static indoorLevelActivatedEvent : string = "indoorLevelActivated" ;
184187
185188 public get gMap ( ) {
186189 return this . _gMap ;
@@ -349,6 +352,16 @@ export abstract class MapViewBase extends View implements MapView {
349352 notifyMyLocationTapped ( ) {
350353 this . notify ( { eventName : MapViewBase . myLocationTappedEvent , object : this } ) ;
351354 }
355+
356+ notifyBuildingFocusedEvent ( indoorBuilding : IndoorBuilding ) {
357+ let args : BuildingFocusedEventData = { eventName : MapViewBase . indoorBuildingFocusedEvent , object : this , indoorBuilding : indoorBuilding } ;
358+ this . notify ( args ) ;
359+ }
360+
361+ notifyIndoorLevelActivatedEvent ( activateLevel : IndoorLevel ) {
362+ let args : IndoorLevelActivatedEventData = { eventName : MapViewBase . indoorLevelActivatedEvent , object : this , activateLevel : activateLevel } ;
363+ this . notify ( args ) ;
364+ }
352365}
353366
354367export const infoWindowTemplateProperty = new Property < MapViewBase , string | Template > ( { name : "infoWindowTemplate" } ) ;
0 commit comments