From 30d7c7a8e6d5ce193cdacb1c90d276ddb7bb13a1 Mon Sep 17 00:00:00 2001 From: Gabriele Romeo Date: Wed, 28 Feb 2018 17:14:56 +0100 Subject: [PATCH] Update delivery-app.js It fixes a bug where the `addInfoWindow` method must be invoked before we can use it in the right way --- chapter13/app/delivery-app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter13/app/delivery-app.js b/chapter13/app/delivery-app.js index c817fdd..4fdc834 100644 --- a/chapter13/app/delivery-app.js +++ b/chapter13/app/delivery-app.js @@ -14,7 +14,7 @@ export class Application { this.fleetManager = new FleetManager(this.dal.fleetData); this.map = this.uiManager.addMap('gMap', { lat: 50.909698, lng: -1.404351 }); this.addVehicleMarkers(this.fleetManager.fleet); - this.infoWindow = this.map.addInfoWindow; + this.infoWindow = this.map.addInfoWindow(); }); this.uiManager = new UiManager();