type PolyArcOptions = Omit & { bulge?: number; resolution?: number; }; /** * Extends the Google Maps class with a few extra helper methods */ export declare class GoogleMap extends google.maps.Map { private _markers; private _polylines; private _layers; /** * Returns the current layers on the map */ get layers(): google.maps.KmlLayer[]; /** * Returns the current markers on the map */ get markers(): google.maps.Marker[]; /** * Returns the current polylines on the map */ get polylines(): google.maps.Polyline[]; /** * Adds a marker to the map * * @param marker */ addMarker(marker: google.maps.Marker): google.maps.Marker; /** * Adds a layer to the map * * @param layer */ addLayer(layer: google.maps.KmlLayer): google.maps.KmlLayer; /** * Adds a polyline to the map * * @param polyline */ addPolyline(polyline: google.maps.Polyline): google.maps.Polyline; /** * Clears all the layers from the map */ clearLayers(): void; /** * Clears all the markers on the map as long as they were added via these helper methods */ clearMarkers(): void; /** * Clears all the polylines on the map as long as they were added via these helper methods */ clearPolylines(): void; /** * Creates a new layer on the map * * @param options */ createLayer(options: Omit): google.maps.KmlLayer; /** * Creates a new marker on the map * * @param options */ createMarker(options: Omit): google.maps.Marker; /** * Creates a new polyarc on the map * * @param start * @param end * @param options */ createPolyArc(start: google.maps.LatLng | [number, number], end: google.maps.LatLng | [number, number], options?: PolyArcOptions): google.maps.Polyline; /** * Creates a new polyline on the map * * @param options */ createPolyline(options?: Omit): google.maps.Polyline; /** * Converts a [lat,lng] array to a google maps LatLng * * @param point * @protected */ protected loadLatLng(point: [number, number]): google.maps.LatLng; } export {};