Skip to content

Commit 095de62

Browse files
Closure Teamcopybara-github
authored andcommitted
chore: sync changes for Maps JS API v3.54.7a.
PiperOrigin-RevId: 569321701
1 parent bdc3ba7 commit 095de62

File tree

2 files changed

+118
-18
lines changed

2 files changed

+118
-18
lines changed

contrib/externs/maps/google_maps_api_v3_54.js

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,10 @@ google.maps.FeatureType = {
31013101
* Indicates a postal code as used to address postal mail within the country.
31023102
*/
31033103
POSTAL_CODE: 'POSTAL_CODE',
3104+
/**
3105+
* Indicates a school district.
3106+
*/
3107+
SCHOOL_DISTRICT: 'SCHOOL_DISTRICT',
31043108
};
31053109

31063110
/**
@@ -7225,8 +7229,10 @@ google.maps.Place.prototype.query;
72257229
* An interface representing a feature with a place ID which includes features
72267230
* of type {@link google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1}, {@link
72277231
* google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_2}, {@link
7228-
* google.maps.FeatureType.COUNTRY}, {@link google.maps.FeatureType.LOCALITY},
7229-
* and {@link google.maps.FeatureType.POSTAL_CODE}.
7232+
* google.maps.FeatureType.COUNTRY}, {@link
7233+
* google.maps.FeatureType.LOCALITY}, {@link
7234+
* google.maps.FeatureType.POSTAL_CODE}, and {@link
7235+
* google.maps.FeatureType.SCHOOL_DISTRICT}.
72307236
* @extends {google.maps.Feature}
72317237
* @record
72327238
*/
@@ -11953,11 +11959,15 @@ google.maps.journeySharing.JourneySharingMapView.prototype.element;
1195311959
google.maps.journeySharing.JourneySharingMapView.prototype.enableTraffic;
1195411960

1195511961
/**
11956-
* This Field is read-only. A source of tracked locations to be shown in the
11957-
* tracking map view.
11958-
* @type {!google.maps.journeySharing.LocationProvider}
11962+
* This field is read-only. Sources of tracked locations to be shown in the
11963+
* tracking map view. To add or remove location providers, use the {@link
11964+
* google.maps.journeySharing.JourneySharingMapView.addLocationProvider}
11965+
* and {@link
11966+
* google.maps.journeySharing.JourneySharingMapView.removeLocationProvider}
11967+
* methods.
11968+
* @type {?Array<!google.maps.journeySharing.LocationProvider>}
1195911969
*/
11960-
google.maps.journeySharing.JourneySharingMapView.prototype.locationProvider;
11970+
google.maps.journeySharing.JourneySharingMapView.prototype.locationProviders;
1196111971

1196211972
/**
1196311973
* This Field is read-only. The map object contained in the map view.
@@ -11996,6 +12006,16 @@ google.maps.journeySharing.JourneySharingMapView.prototype.takenRoutePolylines;
1199612006
google.maps.journeySharing.JourneySharingMapView.prototype
1199712007
.takenRoutePolylineSetup;
1199812008

12009+
/**
12010+
* This Field is read-only. A source of tracked locations to be shown in the
12011+
* tracking map view.
12012+
* @type {?google.maps.journeySharing.LocationProvider}
12013+
* @deprecated Use {@link
12014+
* google.maps.journeySharing.JourneySharingMapView.locationProviders}
12015+
* instead.
12016+
*/
12017+
google.maps.journeySharing.JourneySharingMapView.prototype.locationProvider;
12018+
1199912019
/**
1200012020
* Configures options for a destination location marker. Invoked whenever a new
1200112021
* destination marker is rendered. <br><br>If specifying a function, the
@@ -12232,6 +12252,26 @@ google.maps.journeySharing.JourneySharingMapView.prototype.vehicleMarkers;
1223212252
*/
1223312253
google.maps.journeySharing.JourneySharingMapView.prototype.waypointMarkers;
1223412254

12255+
/**
12256+
* Adds a location provider to the map view. If the location provider is already
12257+
* added, no action is performed.
12258+
* @param {!google.maps.journeySharing.LocationProvider} locationProvider the
12259+
* location provider to add.
12260+
* @return {undefined}
12261+
*/
12262+
google.maps.journeySharing.JourneySharingMapView.prototype.addLocationProvider =
12263+
function(locationProvider) {};
12264+
12265+
/**
12266+
* Removes a location provider from the map view. If the location provider is
12267+
* not already added to the map view, no action is performed.
12268+
* @param {!google.maps.journeySharing.LocationProvider} locationProvider the
12269+
* location provider to remove.
12270+
* @return {undefined}
12271+
*/
12272+
google.maps.journeySharing.JourneySharingMapView.prototype
12273+
.removeLocationProvider = function(locationProvider) {};
12274+
1223512275
/**
1223612276
* Options for the map view.
1223712277
* @record
@@ -12274,11 +12314,11 @@ google.maps.journeySharing.JourneySharingMapViewOptions.prototype
1227412314
google.maps.journeySharing.JourneySharingMapViewOptions.prototype.element;
1227512315

1227612316
/**
12277-
* A source of tracked locations to be shown in the tracking map view. Required.
12278-
* @type {!google.maps.journeySharing.LocationProvider}
12317+
* Sources of tracked locations to be shown in the tracking map view. Optional.
12318+
* @type {?Array<!google.maps.journeySharing.LocationProvider>}
1227912319
*/
1228012320
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
12281-
.locationProvider;
12321+
.locationProviders;
1228212322

1228312323
/**
1228412324
* Map options passed into the google.maps.Map constructor.
@@ -12304,6 +12344,16 @@ google.maps.journeySharing.JourneySharingMapViewOptions.prototype.mapOptions;
1230412344
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
1230512345
.takenRoutePolylineSetup;
1230612346

12347+
/**
12348+
* A source of tracked locations to be shown in the tracking map view. Optional.
12349+
* @type {?google.maps.journeySharing.LocationProvider}
12350+
* @deprecated Use {@link
12351+
* google.maps.journeySharing.JourneySharingMapViewOptions.locationProviders}
12352+
* instead.
12353+
*/
12354+
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
12355+
.locationProvider;
12356+
1230712357
/**
1230812358
* Configures options for a destination location marker. Invoked whenever a new
1230912359
* destination marker is rendered. <br><br>If specifying a function, the

contrib/externs/maps/google_maps_api_v3_exp.js

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,10 @@ google.maps.FeatureType = {
31013101
* Indicates a postal code as used to address postal mail within the country.
31023102
*/
31033103
POSTAL_CODE: 'POSTAL_CODE',
3104+
/**
3105+
* Indicates a school district.
3106+
*/
3107+
SCHOOL_DISTRICT: 'SCHOOL_DISTRICT',
31043108
};
31053109

31063110
/**
@@ -7225,8 +7229,10 @@ google.maps.Place.prototype.query;
72257229
* An interface representing a feature with a place ID which includes features
72267230
* of type {@link google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1}, {@link
72277231
* google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_2}, {@link
7228-
* google.maps.FeatureType.COUNTRY}, {@link google.maps.FeatureType.LOCALITY},
7229-
* and {@link google.maps.FeatureType.POSTAL_CODE}.
7232+
* google.maps.FeatureType.COUNTRY}, {@link
7233+
* google.maps.FeatureType.LOCALITY}, {@link
7234+
* google.maps.FeatureType.POSTAL_CODE}, and {@link
7235+
* google.maps.FeatureType.SCHOOL_DISTRICT}.
72307236
* @extends {google.maps.Feature}
72317237
* @record
72327238
*/
@@ -11953,11 +11959,15 @@ google.maps.journeySharing.JourneySharingMapView.prototype.element;
1195311959
google.maps.journeySharing.JourneySharingMapView.prototype.enableTraffic;
1195411960

1195511961
/**
11956-
* This Field is read-only. A source of tracked locations to be shown in the
11957-
* tracking map view.
11958-
* @type {!google.maps.journeySharing.LocationProvider}
11962+
* This field is read-only. Sources of tracked locations to be shown in the
11963+
* tracking map view. To add or remove location providers, use the {@link
11964+
* google.maps.journeySharing.JourneySharingMapView.addLocationProvider}
11965+
* and {@link
11966+
* google.maps.journeySharing.JourneySharingMapView.removeLocationProvider}
11967+
* methods.
11968+
* @type {?Array<!google.maps.journeySharing.LocationProvider>}
1195911969
*/
11960-
google.maps.journeySharing.JourneySharingMapView.prototype.locationProvider;
11970+
google.maps.journeySharing.JourneySharingMapView.prototype.locationProviders;
1196111971

1196211972
/**
1196311973
* This Field is read-only. The map object contained in the map view.
@@ -11996,6 +12006,16 @@ google.maps.journeySharing.JourneySharingMapView.prototype.takenRoutePolylines;
1199612006
google.maps.journeySharing.JourneySharingMapView.prototype
1199712007
.takenRoutePolylineSetup;
1199812008

12009+
/**
12010+
* This Field is read-only. A source of tracked locations to be shown in the
12011+
* tracking map view.
12012+
* @type {?google.maps.journeySharing.LocationProvider}
12013+
* @deprecated Use {@link
12014+
* google.maps.journeySharing.JourneySharingMapView.locationProviders}
12015+
* instead.
12016+
*/
12017+
google.maps.journeySharing.JourneySharingMapView.prototype.locationProvider;
12018+
1199912019
/**
1200012020
* Configures options for a destination location marker. Invoked whenever a new
1200112021
* destination marker is rendered. <br><br>If specifying a function, the
@@ -12232,6 +12252,26 @@ google.maps.journeySharing.JourneySharingMapView.prototype.vehicleMarkers;
1223212252
*/
1223312253
google.maps.journeySharing.JourneySharingMapView.prototype.waypointMarkers;
1223412254

12255+
/**
12256+
* Adds a location provider to the map view. If the location provider is already
12257+
* added, no action is performed.
12258+
* @param {!google.maps.journeySharing.LocationProvider} locationProvider the
12259+
* location provider to add.
12260+
* @return {undefined}
12261+
*/
12262+
google.maps.journeySharing.JourneySharingMapView.prototype.addLocationProvider =
12263+
function(locationProvider) {};
12264+
12265+
/**
12266+
* Removes a location provider from the map view. If the location provider is
12267+
* not already added to the map view, no action is performed.
12268+
* @param {!google.maps.journeySharing.LocationProvider} locationProvider the
12269+
* location provider to remove.
12270+
* @return {undefined}
12271+
*/
12272+
google.maps.journeySharing.JourneySharingMapView.prototype
12273+
.removeLocationProvider = function(locationProvider) {};
12274+
1223512275
/**
1223612276
* Options for the map view.
1223712277
* @record
@@ -12274,11 +12314,11 @@ google.maps.journeySharing.JourneySharingMapViewOptions.prototype
1227412314
google.maps.journeySharing.JourneySharingMapViewOptions.prototype.element;
1227512315

1227612316
/**
12277-
* A source of tracked locations to be shown in the tracking map view. Required.
12278-
* @type {!google.maps.journeySharing.LocationProvider}
12317+
* Sources of tracked locations to be shown in the tracking map view. Optional.
12318+
* @type {?Array<!google.maps.journeySharing.LocationProvider>}
1227912319
*/
1228012320
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
12281-
.locationProvider;
12321+
.locationProviders;
1228212322

1228312323
/**
1228412324
* Map options passed into the google.maps.Map constructor.
@@ -12304,6 +12344,16 @@ google.maps.journeySharing.JourneySharingMapViewOptions.prototype.mapOptions;
1230412344
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
1230512345
.takenRoutePolylineSetup;
1230612346

12347+
/**
12348+
* A source of tracked locations to be shown in the tracking map view. Optional.
12349+
* @type {?google.maps.journeySharing.LocationProvider}
12350+
* @deprecated Use {@link
12351+
* google.maps.journeySharing.JourneySharingMapViewOptions.locationProviders}
12352+
* instead.
12353+
*/
12354+
google.maps.journeySharing.JourneySharingMapViewOptions.prototype
12355+
.locationProvider;
12356+
1230712357
/**
1230812358
* Configures options for a destination location marker. Invoked whenever a new
1230912359
* destination marker is rendered. <br><br>If specifying a function, the

0 commit comments

Comments
 (0)