Skip to content

Commit

Permalink
fix: MapTypeControlStyle enum values
Browse files Browse the repository at this point in the history
fixes the values for the enum MapTypeControlStyle to match Google Enum

fixes: #1688
  • Loading branch information
DefJunx authored and doom777 committed Sep 29, 2019
1 parent d3ef334 commit 8abe038
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/core/services/google-maps-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ export interface MapOptions {

export interface MapTypeStyle {
elementType?: 'all' | 'geometry' | 'geometry.fill' | 'geometry.stroke' | 'labels' | 'labels.icon' |
'labels.text' | 'labels.text.fill' | 'labels.text.stroke';
'labels.text' | 'labels.text.fill' | 'labels.text.stroke';
featureType?: 'administrative' | 'administrative.country' | 'administrative.land_parcel' |
'administrative.locality' | 'administrative.neighborhood' | 'administrative.province' | 'all' |
'landscape' | 'landscape.man_made' | 'landscape.natural' | 'landscape.natural.landcover' |
'landscape.natural.terrain' | 'poi' | 'poi.attraction' | 'poi.business' | 'poi.government' |
'poi.medical' | 'poi.park' | 'poi.place_of_worship' | 'poi.school' | 'poi.sports_complex' | 'road' |
'road.arterial' | 'road.highway' | 'road.highway.controlled_access' | 'road.local' | 'transit' |
'transit.line' | 'transit.station' | 'transit.station.airport' | 'transit.station.bus' |
'transit.station.rail' | 'water';
'administrative.locality' | 'administrative.neighborhood' | 'administrative.province' | 'all' |
'landscape' | 'landscape.man_made' | 'landscape.natural' | 'landscape.natural.landcover' |
'landscape.natural.terrain' | 'poi' | 'poi.attraction' | 'poi.business' | 'poi.government' |
'poi.medical' | 'poi.park' | 'poi.place_of_worship' | 'poi.school' | 'poi.sports_complex' | 'road' |
'road.arterial' | 'road.highway' | 'road.highway.controlled_access' | 'road.local' | 'transit' |
'transit.line' | 'transit.station' | 'transit.station.airport' | 'transit.station.bus' |
'transit.station.rail' | 'water';
stylers: MapTypeStyler[];
}

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

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

export enum MapTypeControlStyle {
DEFAULT,
DROPDOWN_MENU,
HORIZONTAL_BAR,
DEFAULT = 0,
DROPDOWN_MENU = 2,
HORIZONTAL_BAR = 1,
}

export interface OverviewMapControlOptions {
Expand Down

0 comments on commit 8abe038

Please sign in to comment.