@@ -128,10 +128,11 @@ class GoogleMap extends StatefulWidget {
128
128
this .onCameraIdle,
129
129
this .onTap,
130
130
this .onLongPress,
131
- this .mapId,
132
131
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;
135
136
136
137
/// Callback method for when the map is ready to be used.
137
138
///
@@ -323,13 +324,6 @@ class GoogleMap extends StatefulWidget {
323
324
/// for more details.
324
325
final String ? mapId;
325
326
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
-
333
327
/// Indicates whether map should use [AdvancedMarker] s or [Marker] s.
334
328
final MarkerType markerType;
335
329
@@ -628,7 +622,7 @@ MapConfiguration _configurationFromMapWidget(GoogleMap map) {
628
622
indoorViewEnabled: map.indoorViewEnabled,
629
623
trafficEnabled: map.trafficEnabled,
630
624
buildingsEnabled: map.buildingsEnabled,
631
- mapId: map.mapId ?? map.cloudMapId ,
625
+ mapId: map.mapId,
632
626
// A null style in the widget means no style, which is expressed as '' in
633
627
// the configuration to distinguish from no change (null).
634
628
style: map.style ?? '' ,
0 commit comments