Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 8abe038

Browse files
DefJunxdoom777
authored andcommitted
fix: MapTypeControlStyle enum values
fixes the values for the enum MapTypeControlStyle to match Google Enum fixes: #1688
1 parent d3ef334 commit 8abe038

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

packages/core/services/google-maps-types.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ export interface MapOptions {
221221

222222
export interface MapTypeStyle {
223223
elementType?: 'all' | 'geometry' | 'geometry.fill' | 'geometry.stroke' | 'labels' | 'labels.icon' |
224-
'labels.text' | 'labels.text.fill' | 'labels.text.stroke';
224+
'labels.text' | 'labels.text.fill' | 'labels.text.stroke';
225225
featureType?: 'administrative' | 'administrative.country' | 'administrative.land_parcel' |
226-
'administrative.locality' | 'administrative.neighborhood' | 'administrative.province' | 'all' |
227-
'landscape' | 'landscape.man_made' | 'landscape.natural' | 'landscape.natural.landcover' |
228-
'landscape.natural.terrain' | 'poi' | 'poi.attraction' | 'poi.business' | 'poi.government' |
229-
'poi.medical' | 'poi.park' | 'poi.place_of_worship' | 'poi.school' | 'poi.sports_complex' | 'road' |
230-
'road.arterial' | 'road.highway' | 'road.highway.controlled_access' | 'road.local' | 'transit' |
231-
'transit.line' | 'transit.station' | 'transit.station.airport' | 'transit.station.bus' |
232-
'transit.station.rail' | 'water';
226+
'administrative.locality' | 'administrative.neighborhood' | 'administrative.province' | 'all' |
227+
'landscape' | 'landscape.man_made' | 'landscape.natural' | 'landscape.natural.landcover' |
228+
'landscape.natural.terrain' | 'poi' | 'poi.attraction' | 'poi.business' | 'poi.government' |
229+
'poi.medical' | 'poi.park' | 'poi.place_of_worship' | 'poi.school' | 'poi.sports_complex' | 'road' |
230+
'road.arterial' | 'road.highway' | 'road.highway.controlled_access' | 'road.local' | 'transit' |
231+
'transit.line' | 'transit.station' | 'transit.station.airport' | 'transit.station.bus' |
232+
'transit.station.rail' | 'water';
233233
stylers: MapTypeStyler[];
234234
}
235235

@@ -400,8 +400,8 @@ export interface KmlLayer extends MVCObject {
400400
* See: https://developers.google.com/maps/documentation/javascript/reference?hl=de#KmlLayerStatus
401401
*/
402402
export type KmlLayerStatus = 'DOCUMENT_NOT_FOUND' |
403-
'DOCUMENT_TOO_LARGE' | 'FETCH_ERROR' | 'INVALID_DOCUMENT' | 'INVALID_REQUEST' |
404-
'LIMITS_EXCEEDED' | 'OK' | 'TIMED_OUT' | 'UNKNOWN';
403+
'DOCUMENT_TOO_LARGE' | 'FETCH_ERROR' | 'INVALID_DOCUMENT' | 'INVALID_REQUEST' |
404+
'LIMITS_EXCEEDED' | 'OK' | 'TIMED_OUT' | 'UNKNOWN';
405405

406406
/**
407407
* See: https://developers.google.com/maps/documentation/javascript/reference?hl=de#KmlLayerMetadata
@@ -554,9 +554,9 @@ export interface MapTypeControlOptions {
554554
}
555555

556556
export enum MapTypeControlStyle {
557-
DEFAULT,
558-
DROPDOWN_MENU,
559-
HORIZONTAL_BAR,
557+
DEFAULT = 0,
558+
DROPDOWN_MENU = 2,
559+
HORIZONTAL_BAR = 1,
560560
}
561561

562562
export interface OverviewMapControlOptions {

0 commit comments

Comments
 (0)