Skip to content

Commit

Permalink
feat(Demo): add Indoor events into demo
Browse files Browse the repository at this point in the history
  • Loading branch information
RignonNoel committed Dec 18, 2019
1 parent 129f4ef commit e956766
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demo/app/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,18 @@ function onCameraMove(args) {
console.log("Camera moving: "+JSON.stringify(args.camera));
}

function onIndoorBuildingFocused(args) {
console.log("Building focus changed: " + JSON.stringify(args.indoorBuilding));
}

function onIndoorLevelActivated(args) {
console.log("Indoor level changed: " + JSON.stringify(args.activateLevel));
}

exports.onMapReady = onMapReady;
exports.onCoordinateTapped = onCoordinateTapped;
exports.onMarkerEvent = onMarkerEvent;
exports.onCameraChanged = onCameraChanged;
exports.onCameraMove = onCameraMove;
exports.onIndoorBuildingFocused = onIndoorBuildingFocused;
exports.onIndoorLevelActivated = onIndoorLevelActivated;
2 changes: 2 additions & 0 deletions demo/app/main-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
markerEndDragging="onMarkerEvent" markerDrag="onMarkerEvent"
markerInfoWindowTapped="onMarkerEvent" coordinateTapped="onCoordinateTapped"
cameraChanged="onCameraChanged"
indoorBuildingFocused="onIndoorBuildingFocused"
indoorLevelActivated="onIndoorLevelActivated"
cameraMove="onCameraMove">
<maps:mapView.infoWindowTemplate>
<StackLayout orientation="vertical" width="200" height="150" >
Expand Down

0 comments on commit e956766

Please sign in to comment.