1 |
|
2 | import { NgZone } from '@angular/core';
|
3 | import { Observable } from 'rxjs';
|
4 | import { AgmDataLayer } from './../../directives/data-layer';
|
5 | import { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper';
|
6 |
|
7 |
|
8 |
|
9 | export declare class DataLayerManager {
|
10 | private _wrapper;
|
11 | private _zone;
|
12 | private _layers;
|
13 | constructor(_wrapper: GoogleMapsAPIWrapper, _zone: NgZone);
|
14 | /**
|
15 | * Adds a new Data Layer to the map.
|
16 | */
|
17 | addDataLayer(layer: AgmDataLayer): void;
|
18 | deleteDataLayer(layer: AgmDataLayer): void;
|
19 | updateGeoJson(layer: AgmDataLayer, geoJson: object | string): void;
|
20 | setDataOptions(layer: AgmDataLayer, options: google.maps.Data.DataOptions): void;
|
21 | /**
|
22 | * Creates a Google Maps event listener for the given DataLayer as an Observable
|
23 | */
|
24 | createEventObservable<T>(eventName: string, layer: AgmDataLayer): Observable<T>;
|
25 | /**
|
26 | * Extract features from a geoJson using google.maps Data Class
|
27 | * @param d : google.maps.Data class instance
|
28 | * @param geoJson : url or geojson object
|
29 | */
|
30 | getDataFeatures(d: google.maps.Data, geoJson: object | string): Promise<google.maps.Data.Feature[]>;
|
31 | }
|