Skip to content

Commit bfa5b44

Browse files
committed
Remove cloudMapId field
1 parent ea564e9 commit bfa5b44

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
@@ -127,10 +127,11 @@ class GoogleMap extends StatefulWidget {
127127
this.onCameraIdle,
128128
this.onTap,
129129
this.onLongPress,
130-
this.mapId,
131130
this.markerType = MarkerType.marker,
132-
@Deprecated('cloudMapId is deprecated. Use mapId instead.') this.cloudMapId,
133-
});
131+
String? mapId,
132+
@Deprecated('cloudMapId is deprecated. Use mapId instead.')
133+
String? cloudMapId,
134+
}) : mapId = mapId ?? cloudMapId;
134135

135136
/// Callback method for when the map is ready to be used.
136137
///
@@ -357,13 +358,6 @@ class GoogleMap extends StatefulWidget {
357358
/// for more details.
358359
final String? mapId;
359360

360-
/// Identifier that's associated with a specific cloud-based map style.
361-
///
362-
/// See https://developers.google.com/maps/documentation/get-map-id
363-
/// for more details.
364-
@Deprecated('cloudMapId is deprecated. Use mapId instead.')
365-
final String? cloudMapId;
366-
367361
/// Indicates whether map should use [AdvancedMarker]s or [Marker]s.
368362
final MarkerType markerType;
369363

@@ -685,7 +679,7 @@ MapConfiguration _configurationFromMapWidget(GoogleMap map) {
685679
indoorViewEnabled: map.indoorViewEnabled,
686680
trafficEnabled: map.trafficEnabled,
687681
buildingsEnabled: map.buildingsEnabled,
688-
mapId: map.mapId ?? map.cloudMapId,
682+
mapId: map.mapId,
689683
// A null style in the widget means no style, which is expressed as '' in
690684
// the configuration to distinguish from no change (null).
691685
style: map.style ?? '',

0 commit comments

Comments
 (0)