/// /// export declare type Coordinate = { lat: number; lng: number; }; export declare type MarkerMouseEvent = { domEvent: React.MouseEvent; latLng: google.maps.LatLng; pixel: google.maps.Point; }; /** * @see https://developers.google.com/maps/documentation/javascript/style-reference#style-elements */ export declare type ElementType = 'all' | 'geometry' | 'geometry.fill' | 'geometry.stroke' | 'labels' | 'labels.icon' | 'labels.text' | 'labels.text.fill' | 'labels.text.stroke'; /** * @see https://developers.google.com/maps/documentation/javascript/style-reference#style-features */ export declare type FeatureType = 'all' | 'administrative' | 'administrative.country' | 'administrative.land_parcel' | 'administrative.locality' | 'administrative.neighborhood' | 'administrative.province' | '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'; /** * @see https://developers.google.com/maps/documentation/javascript/style-reference#stylers */ export declare type Styler = { /** * (an RGB hex string of format #RRGGBB) indicates the basic color. */ hue?: string; /** * (a floating point value between -100 and 100) indicates the percentage change in brightness of the element. * Negative values increase darkness (where -100 specifies black) while positive values increase brightness (where +100 specifies white). * Note: This option sets the lightness while keeping the saturation and hue specified in the default Google style (or in other style options you define on the map). */ lightness?: number; /** * (a floating point value between -100 and 100) indicates the percentage change in intensity of the basic color to apply to the element. * Note: This option sets the saturation while keeping the hue and lightness specified in the default Google style (or in other style options you define on the map). */ saturation?: number; /** * (a floating point value between 0.01 and 10.0, where 1.0 applies no correction) indicates the amount of gamma correction to apply to the element. * Gamma corrections modify the lightness of colors in a non-linear fashion, while not affecting white or black values. * Gamma correction is typically used to modify the contrast of multiple elements. * For example, you can modify the gamma to increase or decrease the contrast between the edges and interiors of elements. * Note: This option adjusts the lightness relative to the default Google style, using a gamma curve. */ gamma?: number; /** * (if true) inverts the existing lightness. This is useful, for example, for quickly switching to a darker map with white text. * Note: This option simply inverts the default Google style. */ invert_lightness?: boolean; /** * (on, off, or simplified) indicates whether and how the element appears on the map. * A simplified visibility removes some style features from the affected features; roads, for example, are simplified into thinner lines without outlines, while parks lose their label text but retain the label icon. */ visibility?: 'on' | 'off' | 'simplified'; /** * (an RGB hex string of format #RRGGBB) sets the color of the feature. */ color?: string; /** * (an integer value, greater than or equal to zero) sets the weight of the feature, in pixels. * Setting the weight to a high value may result in clipping near tile borders. */ weight?: number; };