Skip to content

Commit 71c22ff

Browse files
committed
Remove cloudMapId field
1 parent 215d0db commit 71c22ff

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ class GoogleMap extends StatefulWidget {
128128
this.onCameraIdle,
129129
this.onTap,
130130
this.onLongPress,
131-
this.mapId,
132131
this.markerType = MarkerType.marker,
133-
@Deprecated('cloudMapId is deprecated. Use mapId instead.') this.cloudMapId,
134-
});
132+
String? mapId,
133+
@Deprecated('cloudMapId is deprecated. Use mapId instead.')
134+
String? cloudMapId,
135+
}) : mapId = mapId ?? cloudMapId;
135136

136137
/// Callback method for when the map is ready to be used.
137138
///
@@ -323,13 +324,6 @@ class GoogleMap extends StatefulWidget {
323324
/// for more details.
324325
final String? mapId;
325326

326-
/// Identifier that's associated with a specific cloud-based map style.
327-
///
328-
/// See https://developers.google.com/maps/documentation/get-map-id
329-
/// for more details.
330-
@Deprecated('cloudMapId is deprecated. Use mapId instead.')
331-
final String? cloudMapId;
332-
333327
/// Indicates whether map should use [AdvancedMarker]s or [Marker]s.
334328
final MarkerType markerType;
335329

@@ -628,7 +622,7 @@ MapConfiguration _configurationFromMapWidget(GoogleMap map) {
628622
indoorViewEnabled: map.indoorViewEnabled,
629623
trafficEnabled: map.trafficEnabled,
630624
buildingsEnabled: map.buildingsEnabled,
631-
mapId: map.mapId ?? map.cloudMapId,
625+
mapId: map.mapId,
632626
// A null style in the widget means no style, which is expressed as '' in
633627
// the configuration to distinguish from no change (null).
634628
style: map.style ?? '',

0 commit comments

Comments
 (0)