fix to properly place polyline at initial camera position in example app (#2941)
diff --git a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md
index 6dcb967..3b6db09 100644
--- a/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md
+++ b/packages/google_maps_flutter/google_maps_flutter/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.1.1
+
+* Fix in example app to properly place polyline at initial camera position.
+
## 1.1.0
* Add support for holes in Polygons.
diff --git a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart
index 65201d5..fe22603 100644
--- a/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart
+++ b/packages/google_maps_flutter/google_maps_flutter/example/lib/place_polyline.dart
@@ -31,7 +31,7 @@
GoogleMapController controller;
Map<PolylineId, Polyline> polylines = <PolylineId, Polyline>{};
- int _polylineIdCounter = 1;
+ int _polylineIdCounter = 0;
PolylineId selectedPolyline;
// Values when toggling polyline color
@@ -215,7 +215,7 @@
height: 300.0,
child: GoogleMap(
initialCameraPosition: const CameraPosition(
- target: LatLng(52.4478, -3.5402),
+ target: LatLng(53.1721, -3.5402),
zoom: 7.0,
),
polylines: Set<Polyline>.of(polylines.values),
diff --git a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml
index c07d189..ef3a06f 100644
--- a/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml
+++ b/packages/google_maps_flutter/google_maps_flutter/pubspec.yaml
@@ -1,7 +1,7 @@
name: google_maps_flutter
description: A Flutter plugin for integrating Google Maps in iOS and Android applications.
homepage: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter
-version: 1.1.0
+version: 1.1.1
dependencies:
flutter: