import { IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; export declare type MapType = 'MAP_TYPE_NORMAL' | 'MAP_TYPE_ROADMAP' | 'MAP_TYPE_SATELLITE' | 'MAP_TYPE_HYBRID' | 'MAP_TYPE_TERRAIN' | 'MAP_TYPE_NONE'; export interface ILatLng { lat: number; lng: number; } /** * @hidden */ export declare class LatLng implements ILatLng { lat: number; lng: number; constructor(lat: number, lng: number); equals(other: ILatLng): boolean; toString(): string; toUrlValue(precision?: number): string; } export interface ILatLngBounds { northeast: ILatLng; southwest: ILatLng; } /** * @hidden */ export declare class LatLngBounds implements ILatLngBounds { northeast: ILatLng; southwest: ILatLng; type: string; private _objectInstance; constructor(points?: ILatLng[]); /** * Converts to string * @return {string} */ toString(): string; /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. * @param precision {number} * @return {string} */ toUrlValue(precision?: number): string; /** * Extends this bounds to contain the given point. * @param LatLng {ILatLng} */ extend(LatLng: ILatLng): void; /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ contains(LatLng: ILatLng): boolean; /** * Computes the center of this LatLngBounds * @return {LatLng} */ getCenter(): LatLng; } export interface GoogleMapControlOptions { /** * Turns the compass on or off. */ compass?: boolean; /** * Turns the myLocation button on or off. If turns on this button, the application displays a permission dialog to obtain the geolocation data. */ myLocationButton?: boolean; /** * Turns the myLocation control(blue dot) on or off. If turns on this control, the application displays a permission dialog to obtain the geolocation data. */ myLocation?: boolean; /** * Turns the indoor picker on or off. */ indoorPicker?: boolean; /** * **Android** * Turns the map toolbar on or off. */ mapToolbar?: boolean; /** * **Android** * Turns the zoom controller on or off. */ zoom?: boolean; /** * Accept extra properties for future updates */ [key: string]: any; } export interface GoogleMapGestureOptions { /** * Set false to disable the scroll gesture (default: true) */ scroll?: boolean; /** * Set false to disable the tilt gesture (default: true) */ tilt?: boolean; /** * Set false to disable the zoom gesture (default: true) */ zoom?: boolean; /** * Set false to disable the rotate gesture (default: true) */ rotate?: boolean; /** * Accept extra properties for future updates */ [key: string]: any; } export interface GoogleMapZoomOptions { minZoom?: number; maxZoom?: number; } export interface GoogleMapPaddingOptions { left?: number; top?: number; bottom?: number; right?: number; } export interface GoogleMapPreferenceOptions { /** * Minimum and maximum zoom levels for zooming gestures. */ zoom?: GoogleMapZoomOptions; /** * Paddings of controls. */ padding?: GoogleMapPaddingOptions; /** * Turns the 3D buildings layer on or off. */ building?: boolean; /** * Sets the bounds limit for user panning gesture. */ gestureBounds?: ILatLng[]; /** * Accept extra properties for future updates */ [key: string]: any; } export interface GoogleMapOptions { /** * mapType [options] */ mapType?: MapType | string; /** * controls [options] */ controls?: GoogleMapControlOptions; /** * gestures [options] */ gestures?: GoogleMapGestureOptions; /** * Map styles [options] * @ref https://developers.google.com/maps/documentation/javascript/style-reference */ styles?: any[]; /** * Initial camera position [options] */ camera?: CameraPosition; /** * preferences [options] */ preferences?: GoogleMapPreferenceOptions; /** * Accept extra properties for future updates */ [key: string]: any; } export interface CameraPosition { /** * The center location of the camera view. * * [usage 1] * * let cameraPos: CameraPosition = { * target: {lat: ..., lng: ...}, * zoom: 10 * } * * [usage 2] The zoom property is ignored when you specify multiple position * * let cameraPos: CameraPosition = { * target: [ * {lat: ..., lng: ...}, * {lat: ..., lng: ...}, * {lat: ..., lng: ...} * ] * } */ target?: T; /** * View angle */ tilt?: number; /** * Zoom level */ zoom?: number; /** * Map orientation */ bearing?: number; /** * The duration of animation in milliseconds */ duration?: number; /** * Camera padding in pixel */ padding?: number; } export interface CircleOptions { /** * Center position of circle */ center: ILatLng; /** * Radius of circle in meter */ radius: number; /** * Set the stroke color * (rgb, rgba, #RRGGBB, "colorname", ...etc) */ strokeColor?: string; /** * Set the stroke width in pixel */ strokeWidth?: number; /** * Set the inside color of circle * (rgb, rgba, #RRGGBB, "colorname", ...etc) */ fillColor?: string; /** * Set to true to receive the CIRCLE_CLICK event * (default: false) */ clickable?: boolean; /** * Set to false to hide */ visible?: boolean; /** * Z-index */ zIndex?: number; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface GeocoderRequest { /** * The address property or position property is required. * You can not specify both property at the same time. * * [geocoding usage1] * let request: GeocoderRequest = { * address: "Los Angeles, California, USA" * } * * [geocoding usage2] * let request: GeocoderRequest = { * address: [ * "Los Angeles, California, USA", * "San Francisco, California, USA", * ] * } */ address?: string | string[]; /** * * [reverse-geocoding usage1] * let request: GeocoderRequest = { * position: {"lat": 37.421655, "lng": -122.085637} * } * * [reverse-geocoding usage2] * let request: GeocoderRequest = { * position: [ * {"lat": 37.421655, "lng": -122.085637}, * {"lat": 37.332, "lng": -122.030781} * ] * } */ position?: ILatLng | ILatLng[]; } export interface GeocoderResult { adminArea?: string; country?: string; countryCode?: string; extra?: { featureName?: string; lines?: string[]; permises?: string; phone?: string; url?: string; }; locale?: string; locality?: string; position?: ILatLng; postalCode?: string; subAdminArea?: string; subLocality?: string; subThoroughfare?: string; thoroughfare?: string; } export interface GroundOverlayOptions { /** * URL of overlay */ url: string; /** * Bounds, array of ILatLng */ bounds: ILatLng[]; /** * Set to true to receive the GROUND_OVERLAY_CLICK event * (default: false) */ clickable?: boolean; /** * Set to false to hide */ visible?: boolean; /** * Opacity. From 0.0 to 1.0 . */ opacity?: number; /** * Bearing */ bearing?: number; /** * Z-index */ zIndex?: number; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface MarkerIcon { url?: string; size?: { width?: number; height?: number; }; } export interface MarkerOptions { /** * The icon image url or properties. Also you can specify HTML Color values. Alternatively you can specify the image as Base64 */ icon?: any; /** * The content of the infoWindow. */ title?: string; /** * The snippet of the infoWindow. */ snippet?: string; /** * The position of the marker. */ position: ILatLng; /** * Specify the anchor of the InfoWindow */ infoWindowAnchor?: number[]; /** * Specify the anchor of icon image */ anchor?: number[]; /** * Set true if you want to enable to drag the marker. (Default: false) Important! Drag starts after long pressed on the marker. */ draggable?: boolean; /** * Set true if you want to use a flat marker. (Default: false) */ flat?: boolean; /** * Set rotation angle. (Default: 0) */ rotation?: number; /** * Set false if you want to hide. (Default: true) */ visible?: boolean; /** * Specify the options for title. This property work for normal InfoWindow. */ styles?: any; /** * Which animation to play when marker is added to a map. */ animation?: string; /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. */ zIndex?: number; /** * Set to true to disable auto panning when the marker is clicked. */ disableAutoPan?: boolean; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface MarkerLabel { /** * Set true if use bold font */ bold?: boolean; /** * Set font size in pixel */ fontSize?: number; /** * color strings */ color?: string; /** * Set true if use italic font */ italic?: boolean; } export interface MarkerClusterIcon { /** * Minimum number of clustering */ min?: number; /** * Maximum number of clustering */ max?: number; /** * anchor position of the marker */ anchor?: any; /** * label option for clustered marker */ label?: MarkerLabel; /** * icon url */ url: string; /** * icon size */ size?: { width?: number; height?: number; }; } export interface MarkerClusterOptions { /** * Maximum zoom level of clustering * (default: 15, max: 18) */ maxZoomLevel?: number; /** * Draw a rectangle that contains all locations of clustered when you tap on a cluster marker. * (default: true) */ boundsDraw?: boolean; /** * Position list * [ * {title: "store A", position: {lat: ..., lng: ...}}, * {title: "store B", position: {lat: ..., lng: ...}}, * {title: "store C", position: {lat: ..., lng: ...}} * ] */ markers: MarkerOptions[]; /** * Conditions of clustering * [ * {icon: "assets/small.png", min: 2, max: 10}, * {icon: "assets/middle.png", min: 11, max: 30}, * {icon: "assets/large.png", min: 31} * ] */ icons: MarkerClusterIcon[]; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface MyLocation { latLng?: LatLng; elapsedRealtimeNanos?: any; time?: string; accuracy?: any; bearing?: number; altitude?: any; speed?: number; provider?: any; hashCode?: any; } export interface MyLocationOptions { /** * Set true if you want to try to use GPS mandatory. * In false, the plugin try to use GPS and network. * (default: false) */ enableHighAccuracy?: boolean; } export interface PolygonOptions { /** * Pass ILatLng[] to specify the vertixes. * You need to contain two points at least. */ points: ILatLng[]; /** * Set true if you want to draw the curve polygon based on the earth * (default: false) */ geodesic?: boolean; /** * Set the stroke color * (rgb, rgba, #RRGGBB, "colorname", ...etc) */ strokeColor?: string; /** * Set the stroke width in pixel */ strokeWidth?: number; /** * Set the inside color of polygon * (rgb, rgba, #RRGGBB, "colorname", ...etc) */ fillColor?: string; /** * Set false if you want to create invisible polygon * (Invisible polygon is not clickable, default true) */ visible?: boolean; /** * Hierarchy z-index */ zIndex?: number; /** * Pass ILatLng[][] to create holes in polygon */ holes?: ILatLng[][]; /** * Set true if you want to receive the POLYGON_CLICK event * (default: false) */ clickable?: boolean; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface PolylineOptions { /** * Pass ILatLng[] to specify the vertixes. * You need to contain two points at least. */ points: ILatLng[]; /** * Set false if you want to create invisible polyline * (Invisible polyline is not clickable, default true) */ visible?: boolean; /** * Set true if you want to draw the curve polyline based on the earth * (default: false) */ geodesic?: boolean; /** * Set the stroke color * (rgb, rgba, #RRGGBB, "colorname", ...etc) */ color?: string; /** * Set the stroke width in pixel */ width?: number; /** * Hierarchy z-index */ zIndex?: number; /** * Set true if you want to receive the POLYLINE_CLICK event * (default: false) */ clickable?: boolean; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface TileOverlayOptions { /** * This callback must Returns string of image URL, or Promise. * If no tile, you need to Returns null. */ getTile: (x: number, y: number, zoom: number) => string; /** * Set false if you want to create invisible tilelayer * (default true) */ visible?: boolean; /** * Hierarchy z-index of tilelayer */ zIndex?: number; /** * Default: 512px */ tileSize?: number; /** * Default: 1.0 */ opacity?: number; /** * Set true if you want to display the tile information over the tile images. */ debug?: boolean; /** * Accept own properties * You can get the property later using `get()` method. */ [key: string]: any; } export interface ToDataUrlOptions { /** * True if you want get high quality map snapshot */ uncompress?: boolean; } /** * Options for map.addKmlOverlay() method */ export interface KmlOverlayOptions { url: string; clickable?: boolean; suppressInfoWindows?: boolean; icon?: string | MarkerIcon; /** * Accept own properties for future update */ [key: string]: any; } /** * Options for Environment.setEnv() */ export interface EnvOptions { API_KEY_FOR_BROWSER_RELEASE?: string; API_KEY_FOR_BROWSER_DEBUG?: string; /** * Accept own properties for future update */ [key: string]: any; } /** * @hidden */ export declare class VisibleRegion implements ILatLngBounds { private _objectInstance; /** * The northeast of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the farRight is not the same as the northeast. */ northeast: ILatLng; /** * The southwest of the bounds that contains the farLeft, farRight, nearLeft and nearRight. * Since the map view is able to rotate, the nearLeft is not the same as the southwest. */ southwest: ILatLng; /** * The farLeft indicates the lat/lng of the top-left of the map view. */ farLeft: ILatLng; /** * The farRight indicates the lat/lng of the top-right of the map view. */ farRight: ILatLng; /** * The nearLeft indicates the lat/lng of the bottom-left of the map view. */ nearLeft: ILatLng; /** * The nearRight indicates the lat/lng of the bottom-right of the map view. */ nearRight: ILatLng; /** * constant value : `VisibleRegion` */ type: string; constructor(southwest: LatLngBounds, northeast: LatLngBounds, farLeft: ILatLng, farRight: ILatLng, nearLeft: ILatLng, nearRight: ILatLng); /** * Converts to string * @return {string} */ toString(): string; /** * Returns a string of the form "lat_sw,lng_sw,lat_ne,lng_ne" for this bounds, where "sw" corresponds to the southwest corner of the bounding box, while "ne" corresponds to the northeast corner of that box. * @param precision {number} * @return {string} */ toUrlValue(precision?: number): string; /** * Returns true if the given lat/lng is in this bounds. * @param LatLng {ILatLng} */ contains(LatLng: ILatLng): boolean; } /** * @hidden */ export declare const StreetViewSource: { DEFAULT: string; OUTDOOR: string; }; export interface SetPovOption { bearing: number; radius?: number; zoom?: number; duration: number; } export interface StreetViewSetPositionOption { target: ILatLng; source?: string; radius?: number; } export interface StreetViewCameraPano { target: string; bearing?: number; tilt?: number; zoom?: number; } export interface StreetViewCameraPosition { target: ILatLng; source?: string; radius?: number; bearing?: number; tilt?: number; zoom?: number; } export interface StreetViewControlOptions { streetNames?: boolean; navigation?: boolean; } export interface StreetViewGestureOptions { panning?: boolean; zooming?: boolean; } export interface StreetViewOptions { camera?: StreetViewCameraPano | StreetViewCameraPosition; /** * controls [options] */ controls?: StreetViewControlOptions; /** * gestures [options] */ gestures?: StreetViewGestureOptions; /** * Accept extra properties for future updates */ [key: string]: any; } export interface StreetViewNavigationLink { /** * panorama Id */ panoId: string; /** * bearing (heading) */ bearing: number; } export interface StreetViewLocation { latLng: ILatLng; links: StreetViewNavigationLink[]; } /** * @hidden * You can listen to these events where appropriate */ export declare const GoogleMapsEvent: { MAP_READY: string; MAP_CLICK: string; MAP_LONG_CLICK: string; POI_CLICK: string; MY_LOCATION_CLICK: string; MY_LOCATION_BUTTON_CLICK: string; INDOOR_BUILDING_FOCUSED: string; INDOOR_LEVEL_ACTIVATED: string; CAMERA_MOVE_START: string; CAMERA_MOVE: string; CAMERA_MOVE_END: string; OVERLAY_CLICK: string; POLYGON_CLICK: string; POLYLINE_CLICK: string; CIRCLE_CLICK: string; GROUND_OVERLAY_CLICK: string; INFO_CLICK: string; INFO_LONG_CLICK: string; INFO_CLOSE: string; INFO_OPEN: string; MARKER_CLICK: string; MARKER_DRAG: string; MARKER_DRAG_START: string; MARKER_DRAG_END: string; MAP_DRAG: string; MAP_DRAG_START: string; MAP_DRAG_END: string; KML_CLICK: string; PANORAMA_READY: string; PANORAMA_CAMERA_CHANGE: string; PANORAMA_LOCATION_CHANGE: string; PANORAMA_CLICK: string; }; /** * @hidden */ export declare const GoogleMapsAnimation: { BOUNCE: string; DROP: string; }; /** * @hidden */ export declare const GoogleMapsMapTypeId: { NORMAL: string; ROADMAP: string; SATELLITE: string; HYBRID: string; TERRAIN: string; NONE: string; }; /** * @name Google Maps * @description * This plugin uses the native Google Maps SDK * Note: As of Ionic native 4.0, this using the 2.0 version of the google maps plugin. Please make sure your plugin is updated * @usage * ```typescript * import { * GoogleMaps, * GoogleMap, * GoogleMapsEvent, * GoogleMapOptions, * CameraPosition, * MarkerOptions, * Marker * } from '@ionic-native/google-maps'; * import { Component } from "@angular/core/"; * * @Component({ * selector: 'page-home', * templateUrl: 'home.html' * }) * export class HomePage { * map: GoogleMap; * constructor() { } * * ionViewDidLoad() { * this.loadMap(); * } * * loadMap() { * * let mapOptions: GoogleMapOptions = { * camera: { * target: { * lat: 43.0741904, * lng: -89.3809802 * }, * zoom: 18, * tilt: 30 * } * } * * this.map = GoogleMaps.create('map_canvas', mapOptions); * * let marker: Marker = this.map.addMarkerSync({ * title: 'Ionic', * icon: 'blue', * animation: 'DROP', * position: { * lat: 43.0741904, * lng: -89.3809802 * } * }); * * marker.on(GoogleMapsEvent.MARKER_CLICK) * .subscribe(() => { * alert('clicked'); * }); * }); * } * } * * ``` * @classes * GoogleMaps * GoogleMap * StreetView * Circle * Encoding * Environment * Geocoder * GroundOverlay * HtmlInfoWindow * Geocoder * LatLng * LatLngBounds * Marker * MarkerCluster * Polygon * Polyline * Spherical * KmlOverlay * Poly * TileOverlay * BaseClass * BaseArrayClass * @interfaces * GoogleMapOptions * CameraPosition * CircleOptions * GeocoderRequest * GeocoderResult * GroundOverlayOptions * ILatLng * MarkerIcon * MarkerOptions * MarkerClusterIcon * MarkerClusterOptions * MyLocation * MyLocationOptions * PolygonOptions * PolylineOptions * TileOverlayOptions * KmlOverlayOptions * VisibleRegion */ export declare class GoogleMaps extends IonicNativePlugin { /** * Creates a new GoogleMap instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {GoogleMapOptions} [options] Options * @return {GoogleMap} */ static create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap; /** * @deprecation keep this for backward compatibility. * @hidden */ create(element: string | HTMLElement | GoogleMapOptions, options?: GoogleMapOptions): GoogleMap; /** * Creates a new StreetView instance * @param element {string | HTMLElement} Element ID or reference to attach the map to * @param options {StreetViewOptions} [options] Options * @return {StreetViewPanorama} */ static createPanorama(element: string | HTMLElement, options?: StreetViewOptions): StreetViewPanorama; } /** * @hidden * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseClass/README.md */ export declare class BaseClass { protected _objectInstance: any; constructor(objInstance?: any); /** * Adds an event listener. * @param eventName {string} event name you want to observe. * @return {Observable} */ addEventListener(eventName: string): Observable; /** * Attaches the handler for the event that is thrown by the target, where the minimum interval between events (in milliseconds) is specified as a parameter. * @param eventName {string} event name you want to observe. * @param throttleInterval {number} throttle interval in milliseconds * @return {Observable} */ /** * Adds an event listener that works once. * @param eventName {string} event name you want to observe. * @return {Promise} */ addEventListenerOnce(eventName: string): Promise; /** * @deprecated * Adds an event listener that works once. * @param eventName {string} event name you want to observe. * @return {Promise} */ addListenerOnce(eventName: string): Promise; /** * Gets a value * @param key {any} */ get(key: string): any; /** * Sets a value * @param key {string} The key name for the value. `(key)_changed` will be fired when you set value through this method. * @param value {any} * @param noNotify {boolean} [options] True if you want to prevent firing the `(key)_changed` event. */ set(key: string, value: any, noNotify?: boolean): void; /** * Bind a key to another object * @param key {string} The property name you want to observe. * @param target {any} The target object you want to observe. * @param targetKey? {string} [options] The property name you want to observe. If you omit this, the `key` argument is used. * @param noNotify? {boolean} [options] True if you want to prevent `(key)_changed` event when you bind first time, because the internal status is changed from `undefined` to something. */ bindTo(key: string, target: any, targetKey?: string, noNotify?: boolean): void; /** * Alias of `addEventListener` * @param key {string} The property name you want to observe. * @return {Observable} */ on(eventName: string): Observable; /** * Alias of `addThrottledEventListener` * @param key {string} The property name you want to observe. * @return {Observable} */ /** * Alias of `addEventListenerOnce` * @param key {string} The property name you want to observe. * @return {Promise} */ one(eventName: string): Promise; /** * Return true if this object has event listener for event name * @param eventName {string} Event name * @return {boolean} */ hasEventListener(): boolean; /** * Clears all stored values */ empty(): void; /** * Dispatch event. * @param eventName {string} Event name * @param parameters {any} [options] The data you want to pass to event listerners. */ trigger(eventName: string, ...parameters: any[]): void; /** * Executes off() and empty() */ destroy(): void; /** * Remove event listener(s) * The `removeEventListener()` has three usages: * - removeEventListener("eventName", listenerFunction); * This removes one particular event listener * - removeEventListener("eventName"); * This removes the event listeners that added for the event name. * - removeEventListener(); * This removes all listeners. * * @param eventName {string} [options] Event name * @param listener {Function} [options] Event listener */ removeEventListener(eventName?: string, listener?: (...parameters: any[]) => void): void; /** * Alias of `removeEventListener` * * @param eventName {string} [options] Event name * @param listener {Function} [options] Event listener */ off(eventName?: string, listener?: (...parameters: any[]) => void): void; } /** * @hidden * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/BaseArrayClass/README.md */ export declare class BaseArrayClass extends BaseClass { constructor(initialData?: T[] | any); /** * Removes all elements from the array. * @param noNotify? {boolean} [options] Set true to prevent remove_at events. */ empty(noNotify?: boolean): void; /** * Iterate over each element, calling the provided callback. * @param fn {Function} */ forEach(fn: (element: T, index?: number) => void): void; /** * Iterate over each element, calling the provided callback. * @param fn {Function} * @return {Promise} */ forEachAsync(fn: ((element: T, callback: () => void) => void)): Promise; /** * Iterate over each element, then Returns a new value. * Then you can get the results of each callback. * @param fn {Function} * @return {Object[]} returns a new array with the results */ map(fn: (element: T, index: number) => any): any[]; /** * Iterate over each element, calling the provided callback. * Then you can get the results of each callback. * @param fn {Function} * @param callback {Function} * @return {Promise} returns a new array with the results */ mapAsync(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise; /** * Same as `mapAsync`, but keep the execution order * @param fn {Function} * @param callback {Function} * @return {Promise} returns a new array with the results */ mapSeries(fn: ((element: T, callback: (newElement: any) => void) => void)): Promise; /** * The filter() method creates a new array with all elements that pass the test implemented by the provided function. * @param fn {Function} * @return {T[]} returns a new filtered array */ filter(fn: (element: T, index: number) => boolean): T[]; /** * The filterAsync() method creates a new array with all elements that pass the test implemented by the provided function. * @param fn {Function} * @param callback {Function} * @return {Promise} returns a new filtered array */ filterAsync(fn: (element: T, callback: (result: boolean) => void) => void): Promise; /** * Returns a reference to the underlying Array. * @return {Object[]} */ getArray(): T[]; /** * Returns the element at the specified index. * @param index {number} * @return {Object} */ getAt(index: number): any; /** * Returns the number of the elements. * @return {number} */ getLength(): number; /** * The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. * @param element {Object} * @return {number} */ indexOf(element: T): number; /** * The reverse() method reverses an array in place. */ reverse(): void; /** * The sort() method sorts the elements of an array in place and returns the array. */ sort(): void; /** * Inserts an element at the specified index. * @param index {number} * @param element {Object} * @param noNotify? {boolean} [options] Set true to prevent insert_at event. * @return {Object} */ insertAt(index: number, element: T, noNotify?: boolean): void; /** * Removes the last element of the array and returns that element. * @param noNotify? {boolean} [options] Set true to prevent remove_at event. * @return {Object} */ pop(noNotify?: boolean): T; /** * Adds one element to the end of the array and returns the new length of the array. * @param element {object} * @param noNotify? {boolean} Set true to prevent insert_at events. */ push(element: T, noNotify?: boolean): void; /** * Removes an element from the specified index. * @param index {number} * @param noNotify? {boolean} [options] Set true to prevent remove_at event. */ removeAt(index: number, noNotify?: boolean): T; /** * Sets an element at the specified index. * @param index {number} * @param element {object} * @param noNotify? {boolean} [options] Set true to prevent set_at event. */ setAt(index: number, element: T, noNotify?: boolean): void; } /** * @hidden * https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/class/Circle/README.md */ export declare class Circle extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Changes the center position. * @param latLng {ILatLng} */ setCenter(latLng: ILatLng): void; /** * Returns the current center position * @return {ILatLng} */ getCenter(): ILatLng; /** * Returns the current circle radius. * @return {number} */ getRadius(): number; /** * Changes the circle radius. * @param radius {number} */ setRadius(radius: number): void; /** * Changes the filling color (inner color). * @param color {string} */ setFillColor(color: string): void; /** * Returns the current circle filling color (inner color). * @return {string} */ getFillColor(): string; /** * Changes the stroke width. * @param strokeWidth {number} */ setStrokeWidth(strokeWidth: number): void; /** * Returns the current circle stroke width (unit: pixel). * @return {number} */ getStrokeWidth(): number; /** * Changes the stroke color (outter color). * @param strokeColor {string} */ setStrokeColor(strokeColor: string): void; /** * Returns the current circle stroke color (outer color). * @return {string} */ getStrokeColor(): string; /** * Changes click-ability of the circle. * @param clickable {boolean} */ setClickable(clickable: boolean): void; /** * Returns true if the circle is clickable. * @return {boolean} */ getClickable(): boolean; /** * Changes the circle zIndex order. * @param zIndex {number} */ setZIndex(zIndex: number): void; /** * Returns the current circle zIndex. * @return {number} */ getZIndex(): number; /** * Remove the circle. */ remove(): void; /** * Returns the latLngBounds (rectangle) that contains the circle. * @return {LatLngBounds} */ getBounds(): LatLngBounds; /** * Set circle visibility * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the circle is visible. * @return {boolean} */ getVisible(): boolean; } /** * @hidden */ export declare class Environment { /** * Set environment variables. */ static setEnv(envOptions: EnvOptions): void; /** * Get the open source software license information for Google Maps SDK for iOS. * @return {Promise} */ static getLicenseInfo(): Promise; /** * Specifies the background color of the app. * @param color */ static setBackgroundColor(color: string): void; /** * @deprecation This method is static. Please use Environment.getLicenseInfo() * @hidden */ getLicenseInfo(): Promise; /** * @deprecation This method is static. Please use Environment.setBackgroundColor() * @hidden */ setBackgroundColor(color: string): void; } /** * @hidden */ export declare class Geocoder { /** * @deprecation This method is static. Please use Geocoder.geocode() * @hidden */ geocode(request: GeocoderRequest): Promise>; /** * Converts position to address and vice versa * @param {GeocoderRequest} request Request object with either an address or a position * @return {Promise>} */ static geocode(request: GeocoderRequest): Promise>; } /** * @hidden */ export declare class LocationService { /** * Get the current device location without map * @return {Promise} */ static getMyLocation(options?: MyLocationOptions): Promise; /** * Return true if the application has geolocation permission * @return {Promise} */ static hasPermission(): Promise; } /** * @hidden */ export declare class Encoding { /** * Decodes an encoded path string into a sequence of LatLngs. * @param encoded {string} an encoded path string * @param precision? {number} default: 5 * @return {LatLng} */ static decodePath(encoded: string, precision?: number): ILatLng[]; /** * Encodes a sequence of LatLngs into an encoded path string. * @param path {ILatLng[] | BaseArrayClass} a sequence of LatLngs * @return {string} */ static encodePath(path: ILatLng[] | BaseArrayClass): string; /** * @deprecation This method is static. Please use Encoding.decodePath() * @hidden */ decodePath(encoded: string, precision?: number): ILatLng[]; /** * @deprecation This method is static. Please use Encoding.encodePath() * @hidden */ encodePath(path: ILatLng[] | BaseArrayClass): string; } /** * @hidden */ export declare class Poly { /** * Returns true if the specified location is in the polygon path * @param location {ILatLng} * @param path {ILatLng[]} * @return {boolean} */ static containsLocation(location: ILatLng, path: ILatLng[]): boolean; /** * Returns true if the specified location is on the polyline path * @param location {ILatLng} * @param path {ILatLng[]} * @return {boolean} */ static isLocationOnEdge(location: ILatLng, path: ILatLng[]): boolean; } /** * @hidden */ export declare class Spherical { /** * Returns the distance, in meters, between two LatLngs. * @param locationA {ILatLng} * @param locationB {ILatLng} * @return {number} */ static computeDistanceBetween(from: ILatLng, to: ILatLng): number; /** * Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north) * @param from {ILatLng} * @param distance {number} * @param heading {number} * @return {LatLng} */ static computeOffset(from: ILatLng, distance: number, heading: number): LatLng; /** * Returns the location of origin when provided with a LatLng destination, meters travelled and original heading. Headings are expressed in degrees clockwise from North. This function returns null when no solution is available. * @param to {ILatLng} The destination LatLng. * @param distance {number} The distance travelled, in meters. * @param heading {number} The heading in degrees clockwise from north. * @return {LatLng} */ static computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng; /** * Returns the length of the given path. * @param path {ILatLng[] | BaseArrayClass} * @return {number} */ static computeLength(path: ILatLng[] | BaseArrayClass): number; /** * Returns the area of a closed path. The computed area uses the same units as the radius. * @param path {ILatLng[] | BaseArrayClass}. * @return {number} */ static computeArea(path: ILatLng[] | BaseArrayClass): number; /** * Returns the signed area of a closed path. The signed area may be used to determine the orientation of the path. * @param path {ILatLng[] | BaseArrayClass}. * @return {number} */ static computeSignedArea(path: ILatLng[] | BaseArrayClass): number; /** * Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range (-180,180). * @param from {ILatLng} * @param to {ILatLng} * @return {number} */ static computeHeading(from: ILatLng, to: ILatLng): number; /** * Returns the LatLng which lies the given fraction of the way between the origin LatLng and the destination LatLng. * @param from {ILatLng} The LatLng from which to start. * @param to {ILatLng} The LatLng toward which to travel. * @param fraction {number} A fraction of the distance to travel from 0.0 to 1.0 . * @return {LatLng} */ static interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng; /** * @deprecation This method is static. Please use Spherical.computeDistanceBetween() * @hidden */ computeDistanceBetween(from: ILatLng, to: ILatLng): number; /** * @deprecation This method is static. Please use Spherical.computeOffset() * @hidden */ computeOffset(from: ILatLng, distance: number, heading: number): LatLng; /** * @deprecation This method is static. Please use Spherical.computeOffsetOrigin() * @hidden */ computeOffsetOrigin(to: ILatLng, distance: number, heading: number): LatLng; /** * @deprecation This method is static. Please use Spherical.computeLength() * @hidden */ computeLength(path: ILatLng[] | BaseArrayClass): number; /** * @deprecation This method is static. Please use Spherical.computeArea() * @hidden */ computeArea(path: ILatLng[] | BaseArrayClass): number; /** * @deprecation This method is static. Please use Spherical.computeSignedArea() * @hidden */ computeSignedArea(path: ILatLng[] | BaseArrayClass): number; /** * @deprecation This method is static. Please use Spherical.computeHeading() * @hidden */ computeHeading(from: ILatLng, to: ILatLng): number; /** * @deprecation This method is static. Please use Spherical.interpolate() * @hidden */ interpolate(from: ILatLng, to: ILatLng, fraction: number): LatLng; } /** * @hidden */ export declare class StreetViewPanorama extends BaseClass { constructor(element: string | HTMLElement, options?: StreetViewOptions); /** * Sets the point of view for the Street View panorama. */ setPov(pov: StreetViewCameraPano): void; /** * Sets the StreetViewPanorama to a given location. */ setPosition(cameraPosition: String | StreetViewSetPositionOption): void; /** * Toggles the ability for users to use pan around on the panorama using gestures. * @param gestureEnable {boolean} */ setPanningGesturesEnabled(gestureEnable: boolean): void; /** * Return true if the panning gesture is enabled. * @return {boolean} */ getPanningGesturesEnabled(): boolean; /** * Toggles the ability for users to zoom on the panorama using gestures. * @param gestureEnable {boolean} */ setZoomGesturesEnabled(gestureEnable: boolean): void; /** * Return true if the zooming gesture is enabled. * @return {boolean} */ getZoomGesturesEnabled(): boolean; /** * Toggles the ability for users to see street names on the panorama. * @param gestureEnable {boolean} */ setStreetNamesEnabled(gestureEnable: boolean): void; /** * Return true if the street names control is enabled. * @return {boolean} */ getStreetNamesEnabled(): boolean; /** * Toggles the ability for users to move between panoramas. * @param gestureEnable {boolean} */ setNavigationEnabled(gestureEnable: boolean): void; /** * Return true if the navigation control is enabled. * @return {boolean} */ getNavigationEnabled(): boolean; /** * Return the navigation links (StreetViewLocation.links) * @return {StreetViewNavigationLink[]} */ getLinks(): StreetViewNavigationLink[]; /** * Return the current location * @return {StreetViewLocation} */ getLocation(): StreetViewLocation; /** * Return the current panorama id * @return {string} */ getPanoId(): string; /** * Return the current position (StreetViewLocation.latLng) * @return {string} */ getPosition(): ILatLng; /** * Destroy a panorama completely * @return {Promise} */ remove(): Promise; } /** * @hidden */ export declare class GoogleMap extends BaseClass { constructor(element: HTMLElement | string, options?: GoogleMapOptions, __timeout?: number); /** * Changes the map div * @param domNode {HTMLElement | string} [options] If you want to display the map in an html element, you need to specify an element or id. If omit this argument, the map is detached from webview. */ setDiv(domNode?: HTMLElement | string): void; /** * Returns the map HTML element * @return {HTMLElement} */ getDiv(): HTMLElement; /** * Changes the map type id * @param mapTypeId {string} */ setMapTypeId(mapTypeId: MapType | string): void; /** * Moves the camera with animation * @return {Promise} */ animateCamera(cameraPosition: CameraPosition): Promise; /** * Zooming in the camera with animation * @return {Promise} */ animateCameraZoomIn(): Promise; /** * Zooming out the camera with animation * @return {Promise} */ animateCameraZoomOut(): Promise; /** * Moves the camera without animation * @return {Promise} */ moveCamera(cameraPosition: CameraPosition): Promise; /** * Zooming in the camera without animation * @return {Promise} */ moveCameraZoomIn(): Promise; /** * Zooming out the camera without animation * @return {Promise} */ moveCameraZoomOut(): Promise; /** * Get the position of the camera. * @return {CameraPosition} */ getCameraPosition(): CameraPosition; /** * Get the current camera target position * @return {ILatLng} */ getCameraTarget(): ILatLng; /** * Get the current camera zoom level * @return {number} */ getCameraZoom(): number; /** * Get the current camera bearing * @return {number} */ getCameraBearing(): number; /** * Get the current camera tilt (view angle) * @return {number} */ getCameraTilt(): number; /** * Set the center position of the camera view * @param latLng {ILatLng | ILatLng[]} */ setCameraTarget(latLng: ILatLng | ILatLng[]): void; /** * Set zoom level of the camera * @param zoomLevel {number} Zoom level */ setCameraZoom(zoomLevel: number): void; /** * Set the camera view angle * @param tiltAngle {number} Tilt angle */ setCameraTilt(tiltAngle: number): void; /** * Set camera bearing * @param bearing {any} */ setCameraBearing(bearing: any): void; /** * Changes the center of the map by the given distance in pixels * @param x {number} * @param y {number} */ panBy(x: number, y: number): void; /** * Get the current visible region (southWest and northEast) * @return {VisibleRegion} */ getVisibleRegion(): VisibleRegion; /** * Get the current device location * @return {Promise} */ getMyLocation(options?: MyLocationOptions): Promise; /** * Set false to ignore all clicks on the map * @param isClickable {boolean} */ setClickable(isClickable: boolean): void; /** * Destroy a map completely * @return {Promise} */ remove(): Promise; /** * Remove all overlays, such as marker * @return {Promise} */ clear(): Promise; /** * Convert the unit from LatLng to the pixels from the left/top of the map div * @return {Promise} */ fromLatLngToPoint(latLng: ILatLng): Promise; /** * Convert the unit from the pixels from the left/top to the LatLng * @return {Promise} */ fromPointToLatLng(point: number[]): Promise; /** * Set true if you want to show the MyLocation control (blue dot) * @param enabled {boolean} */ setMyLocationEnabled(enabled: boolean): void; /** * Set true if you want to show the MyLocation button * @param enabled {boolean} */ setMyLocationButtonEnabled(enabled: boolean): void; /** * Get the currently focused building * @return {Promise} */ getFocusedBuilding(): Promise; /** * Set true if you want to show the indoor map * @param enabled {boolean} */ setIndoorEnabled(enabled: boolean): void; /** * Set true if you want to show the traffic layer * @param enabled {boolean} */ setTrafficEnabled(enabled: boolean): void; /** * Set true if you want to show the compass button * @param enabled {boolean} */ setCompassEnabled(enabled: boolean): void; /** * Sets the preference for whether all gestures should be enabled or disabled * @param enabled {boolean} */ setAllGesturesEnabled(enabled: boolean): void; /** * Set visibility of the map * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Adjust the map padding (same as CSS padding rule) * @param top {number} * @param right {number} * @param left {number} * @param bottom {number} */ setPadding(top: number, right?: number, bottom?: number, left?: number): void; /** * Set options * @param options */ setOptions(options: GoogleMapOptions): void; /** * Adds a marker * @param options {MarkerOptions} options * @return {Promise} */ addMarker(options: MarkerOptions): Promise; /** * Adds a marker in synchronous * @param options {MarkerOptions} options * @Returns {Marker} */ addMarkerSync(options: MarkerOptions): Marker; /** * Adds a marker cluster * @param options {MarkerClusterOptions} options * @return {Promise} */ addMarkerCluster(options: MarkerClusterOptions): Promise; /** * Adds a marker cluster in synchronous * @param options {MarkerClusterOptions} options * @Returns {MarkerCluster} */ addMarkerClusterSync(options: MarkerClusterOptions): MarkerCluster; /** * Adds a circle * @param options {CircleOptions} options * @return {Promise} */ addCircle(options: CircleOptions): Promise; /** * Adds a circle in synchronous * @param options {CircleOptions} options * @return {Circle} */ addCircleSync(options: CircleOptions): Circle; /** * Adds a polygon * @param options {PolygonOptions} options * @return {Promise} */ addPolygon(options: PolygonOptions): Promise; /** * Adds a polygon in synchronous * @param options {PolygonOptions} options * @return {Polygon} */ addPolygonSync(options: PolygonOptions): Polygon; /** * Adds a polyline * @param options {PolylineOptions} options * @return {Promise} */ addPolyline(options: PolylineOptions): Promise; /** * Adds a polyline in synchronous * @param options {PolylineOptions} options * @return {Polyline} */ addPolylineSync(options: PolylineOptions): Polyline; /** * Adds a tile overlay * @param options {TileOverlayOptions} options * @return {Promise} */ addTileOverlay(options: TileOverlayOptions): Promise; /** * Adds a tile overlay in synchronous * @param options {TileOverlayOptions} options * @return {TileOverlay} */ addTileOverlaySync(options: TileOverlayOptions): TileOverlay; /** * Adds a ground overlay * @param options {GroundOverlayOptions} options * @return {Promise} */ addGroundOverlay(options: GroundOverlayOptions): Promise; /** * Adds a ground overlay in synchronous * @param options {GroundOverlayOptions} options * @return {GroundOverlay} */ addGroundOverlaySync(options: GroundOverlayOptions): GroundOverlay; /** * Adds a kml overlay * @param options {KmlOverlayOptions} options * @return {Promise} */ addKmlOverlay(options: KmlOverlayOptions): Promise; /** * Returns the base64 encoded screen capture of the map. * @param options {ToDataUrlOptions} [options] options * @return {Promise} */ toDataURL(options?: ToDataUrlOptions): Promise; } /** * @hidden */ export declare class GroundOverlay extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Changes the bounds of the GroundOverlay * @param bounds { ILatLng[]} */ setBounds(bounds: ILatLng[]): void; /** * Changes the bearing of the ground overlay * @param bearing {number} */ setBearing(bearing: number): void; /** * Returns the current bearing value */ getBearing(): number; /** * Changes the image of the ground overlay * @param imageUrl {string} URL of image */ setImage(imageUrl: string): void; /** * Changes the opacity of the ground overlay from 0.0 to 1.0 * @param opacity {number} */ setOpacity(opacity: number): void; /** * Returns the current opacity * @return {number} */ getOpacity(): number; /** * Changes click-ability of the ground overlay * @param clickable {boolean} */ setClickable(clickable: boolean): void; /** * Returns true if the ground overlay is clickable * @return {boolean} */ getClickable(): boolean; /** * Changes visibility of the ground overlay * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the ground overlay is visible * @return {boolean} */ getVisible(): boolean; /** * Changes the ground overlay zIndex order * @param index {number} */ setZIndex(index: number): void; /** * Returns the current ground overlay zIndex * @return {number} */ getZIndex(): number; /** * Remove the ground overlay */ remove(): void; } /** * @hidden */ export declare class HtmlInfoWindow extends BaseClass { constructor(); /** * Changes the backgroundColor * @param color {string} */ setBackgroundColor(color: string): void; /** * Set your HTML contents. * @param content {any} String containing text or HTML element * @param cssOptions? {any} CSS styles for the container element of HTMLInfoWindow */ setContent(content: string | Element, cssOptions?: any): void; /** * Open the htmlInfoWindow * @param marker {Marker} */ open(marker: any): any; /** * Close the htmlInfoWindow */ close(): void; } /** * @hidden */ export declare class Marker extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Set the marker position. * @param latLng {ILatLng} */ setPosition(latLng: ILatLng): void; /** * Returns the marker position. * @return {ILatLng} */ getPosition(): ILatLng; /** * Show the normal infoWindow of the marker. */ showInfoWindow(): void; /** * Hide the normal infoWindow of the marker. */ hideInfoWindow(): void; /** * Specify the animation either `DROP` or `BOUNCE` * @param animation {string} */ setAnimation(animation: string): void; /** * Set true if you **do not want** to move the map when you click on the marker. * @param disableAutoPan {boolean} */ setDisableAutoPan(disableAutoPan: boolean): void; /** * Set false if you want to hide the marker. * @param visible */ setVisible(visible: boolean): void; /** * Returns true if the marker is visible */ isVisible(): boolean; /** * Changes title of the normal infoWindow. * @param title {string} */ setTitle(title: string): void; /** * Returns the title strings. * @return {string} */ getTitle(): string; /** * Changes snippet of the normal infoWindow. * @param snippet {string} */ setSnippet(snippet: string): void; /** * Returns the snippet strings. * @return {string} */ getSnippet(): string; /** * Changes the marker opacity from 0.0 to 1.0. * @param alpha {number} Opacity */ setOpacity(alpha: number): void; /** * Returns the marker opacity. * @return {number} Opacity */ getOpacity(): number; /** * Remove the marker. */ remove(): void; /** * Changes the info window anchor. This defaults to 50% from the left of the image and at the bottom of the image. * @param x {number} Distance from left of the icon image in pixels. * @param y {number} Distance from top of the icon image in pixels. */ setIconAnchor(x: number, y: number): void; /** * Changes the info window anchor. This defaults to 50% from the left of the image and at the top of the image. * @param x {number} Distance from left of the icon image in pixels. * @param y {number} Distance from top of the icon image in pixels. */ setInfoWindowAnchor(x: number, y: number): void; /** * Returns true if the infoWindow is shown on the marker * @return {boolean} */ isInfoWindowShown(): boolean; /** * Higher zIndex value overlays will be drawn on top of lower zIndex value tile layers and overlays. * @param y {number} z-index */ setZIndex(zIndex: number): void; /** * Get z-index * @return {number} */ getZIndex(): number; /** * Set true if you allow all users to drag the marker. * @param draggable {boolean} */ setDraggable(draggable: boolean): void; /** * Returns true if the marker drag is enabled. * @return {boolean} */ isDraggable(): boolean; /** * Set true if you want to be flat marker. * @param flat {boolean} */ setFlat(flat: boolean): void; /** * Changes icon url and/or size * @param icon */ setIcon(icon: MarkerIcon): void; /** * Set the marker rotation angle. * @param rotation {number} */ setRotation(rotation: number): void; /** * Returns the marker rotation angle. * @return {number} */ getRotation(): number; } /** * @hidden */ export declare class MarkerCluster extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Add one marker location * @param marker {MarkerOptions} one location * @param skipRedraw? {boolean} marker cluster does not redraw the marker cluster if true. */ addMarker(marker: MarkerOptions): void; /** * Add marker locations * @param markers {MarkerOptions[]} multiple location */ addMarkers(markers: MarkerOptions[]): void; /** * Remove the marker cluster */ remove(): void; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; } /** * @hidden */ export declare class Polygon extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Changes the polygon points. * @param points {ILatLng[]} */ setPoints(points: ILatLng[]): void; /** * Returns an instance of the BaseArrayClass. * You can modify the points. * @return {BaseArrayClass} */ getPoints(): BaseArrayClass; /** * Changes the polygon holes. * @param holes {ILatLng[][]} */ setHoles(holes: ILatLng[][]): void; /** * Returns an instance of the BaseArrayClass. * You can modify the holes. * @return {BaseArrayClass} */ getHoles(): BaseArrayClass; /** * Changes the filling color (inner color) * @param fillColor {string} */ setFillColor(fillColor: string): void; /** * Returns the current polygon filling color (inner color). * @return {string} */ getFillColor(): string; /** * Changes the stroke color (outer color) * @param strokeColor {string} */ setStrokeColor(strokeColor: string): void; /** * Returns the current polygon stroke color (outer color) * @return {string} */ getStrokeColor(): string; /** * Changes click-ability of the polygon * @param clickable {boolean} */ setClickable(clickable: boolean): void; /** * Returns true if the polygon is clickable */ getClickable(): boolean; /** * Changes visibility of the polygon * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the polygon is visible * @return {boolean} */ getVisible(): boolean; /** * Changes the polygon zIndex order. * @param zIndex {number} */ setZIndex(zIndex: number): void; /** * Returns the current polygon zIndex * @return {number} */ getZIndex(): number; /** * Remove the polygon. */ remove(): void; /** * Changes the polygon stroke width */ setStrokeWidth(strokeWidth: number): void; /** * Returns the polygon stroke width */ getStrokeWidth(): number; /** * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. * @param geodesic {boolean} */ setGeodesic(geodesic: boolean): void; /** * Returns true if the polygon is geodesic. * @return {boolean} */ getGeodesic(): boolean; } /** * @hidden */ export declare class Polyline extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Changes the polyline points. * @param points {ILatLng[]} */ setPoints(points: ILatLng[]): void; /** * Returns an instance of the BaseArrayClass * You can modify the points. * @return {BaseArrayClass} */ getPoints(): BaseArrayClass; /** * When true, edges of the polyline are interpreted as geodesic and will follow the curvature of the Earth. * @param geoDesic {boolean} */ setGeoDesic(geoDesic: boolean): void; /** * Returns true if the polyline is geodesic */ getGeodesic(): boolean; /** * Changes visibility of the polyline * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the polyline is visible * @return {boolean} */ getVisible(): boolean; /** * Changes click-ability of the polyline * @param clickable {boolean} */ setClickable(clickable: boolean): void; /** * Returns true if the polyline is clickable * @return {boolean} */ getClickable(): boolean; /** * Changes the polyline color * @param strokeColor {string} */ setStrokeColor(strokeColor: string): void; /** * Returns the current polyline color * @return {string} */ getStrokeColor(): string; /** * Changes the polyline stroke width * @param strokeWidth {number} */ setStrokeWidth(strokeWidth: number): void; /** * Returns the current stroke width (unit: pixel). * @return {number} */ getStrokeWidth(): number; /** * Changes the polyline zIndex order. * @param index {number} */ setZIndex(index: number): void; /** * Returns the current polyline zIndex * @return {number} */ getZIndex(): number; /** * Remove the polyline */ remove(): void; } /** * @hidden */ export declare class TileOverlay extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): any; /** * Set whether the tiles should fade in. * @param fadeIn {boolean} */ setFadeIn(fadeIn: boolean): void; /** * Get whether the tiles should fade in * @return {boolean} */ getFadeIn(): boolean; /** * Set the zIndex of the tile overlay * @param zIndex {number} */ setZIndex(zIndex: number): void; /** * Returns the zIndex of the tile overlay * @return {number} */ getZIndex(): number; /** * Set the opacity of the tile overlay * @param opacity {number} */ setOpacity(opacity: number): void; /** * Returns the opacity of the tile overlay * @return {number} */ getOpacity(): number; /** * Set false if you want to hide * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the tile overlay is visible * @return {boolean} */ getVisible(): boolean; /** * Get tile size */ getTileSize(): any; /** * Remove the tile overlay */ remove(): void; } /** * @hidden */ export declare class KmlOverlay extends BaseClass { private _map; constructor(_map: GoogleMap, _objectInstance: any); /** * Returns the viewport to contains all overlays */ getDefaultViewport(): CameraPosition; /** * Returns the ID of instance. * @return {string} */ getId(): string; /** * Returns the map instance. * @return {GoogleMap} */ getMap(): GoogleMap; /** * Changes visibility of the kml overlay * @param visible {boolean} */ setVisible(visible: boolean): void; /** * Returns true if the kml overlay is visible * @return {boolean} */ getVisible(): boolean; /** * Changes click-ability of the KmlOverlay * @param clickable {boolean} */ setClickable(clickable: boolean): void; /** * Returns true if the KmlOverlay is clickable * @return {boolean} */ getClickable(): boolean; /** * Remove the KmlOverlay */ remove(): void; }