UNPKG

1.05 kBTypeScriptView Raw
1import { AgmBicyclingLayer } from '../../directives/bicycling-layer';
2import { AgmTransitLayer } from '../../directives/transit-layer';
3import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
4/**
5 * This class manages Transit and Bicycling Layers for a Google Map instance.
6 */
7export declare class LayerManager {
8 private _wrapper;
9 private _layers;
10 constructor(_wrapper: GoogleMapsAPIWrapper);
11 /**
12 * Adds a transit layer to a map instance.
13 * @param layer - a TransitLayer object
14 * @param _options - TransitLayerOptions options
15 * @returns void
16 */
17 addTransitLayer(layer: AgmTransitLayer): void;
18 /**
19 * Adds a bicycling layer to a map instance.
20 * @param layer - a bicycling layer object
21 * @param _options - BicyclingLayer options
22 * @returns void
23 */
24 addBicyclingLayer(layer: AgmBicyclingLayer): void;
25 /**
26 * Deletes a map layer
27 * @param layer - the layer to delete
28 */
29 deleteLayer(layer: AgmTransitLayer | AgmBicyclingLayer): Promise<void>;
30}