@@ -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