Index: samples/maps/directions.dart |
diff --git a/samples/maps/directions.dart b/samples/maps/directions.dart |
index c510a1733a27614187fa051c4548545553407001..e48fe037305cdb64a71be6213516c5a042cefd43 100644 |
--- a/samples/maps/directions.dart |
+++ b/samples/maps/directions.dart |
@@ -38,16 +38,16 @@ main() { |
'center': new LatLng(47.6097, -122.3331) |
}; |
var map = new GMap('#map_canvas', myOptions); |
- |
+ |
directionsDisplay = new DirectionsRenderer(map); |
directionsDisplay.setPanel('#directions_panel'); |
directionsService = new DirectionsService(); |
var control = document.query('#control'); |
control.style.display = 'block'; |
- |
- map.controls[ControlPosition.TOP].dynamic.push('#control'); |
+ |
+ (map.controls[ControlPosition.TOP] as Dynamic).push('#control'); |
query('#start').on.change.add(calcRoute); |
query('#end').on.change.add(calcRoute); |
-} |
+} |