@@ -127,10 +127,11 @@ class GoogleMap extends StatefulWidget {
127
127
this .onCameraIdle,
128
128
this .onTap,
129
129
this .onLongPress,
130
- this .mapId,
131
130
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;
134
135
135
136
/// Callback method for when the map is ready to be used.
136
137
///
@@ -357,13 +358,6 @@ class GoogleMap extends StatefulWidget {
357
358
/// for more details.
358
359
final String ? mapId;
359
360
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
-
367
361
/// Indicates whether map should use [AdvancedMarker] s or [Marker] s.
368
362
final MarkerType markerType;
369
363
@@ -685,7 +679,7 @@ MapConfiguration _configurationFromMapWidget(GoogleMap map) {
685
679
indoorViewEnabled: map.indoorViewEnabled,
686
680
trafficEnabled: map.trafficEnabled,
687
681
buildingsEnabled: map.buildingsEnabled,
688
- mapId: map.mapId ?? map.cloudMapId ,
682
+ mapId: map.mapId,
689
683
// A null style in the widget means no style, which is expressed as '' in
690
684
// the configuration to distinguish from no change (null).
691
685
style: map.style ?? '' ,
0 commit comments