@ng-maps/core
Version:
**@ng-maps/core** is a simple, modular and tree-shakable library for displaying google-maps inside an angular application
21 lines (20 loc) • 1.09 kB
TypeScript
import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import { NgMapsPolygonDirective } from '../../directives/polygon';
import { MapsApiWrapper } from '../maps-api-wrapper';
import * as i0 from "@angular/core";
export declare abstract class PolygonManager<T = any> {
protected _mapsWrapper: MapsApiWrapper;
protected _zone: NgZone;
protected _polygons: Map<NgMapsPolygonDirective, Promise<T>>;
constructor(_mapsWrapper: MapsApiWrapper, _zone: NgZone);
abstract addPolygon(path: NgMapsPolygonDirective): Promise<void> | void;
abstract updatePolygon(polygon: NgMapsPolygonDirective): Promise<void>;
abstract setPolygonOptions(path: NgMapsPolygonDirective, options: {
[propName: string]: any;
}): Promise<void>;
abstract deletePolygon(paths: NgMapsPolygonDirective): Promise<void>;
abstract createEventObservable<E>(eventName: string, path: NgMapsPolygonDirective): Observable<E>;
static ɵfac: i0.ɵɵFactoryDeclaration<PolygonManager<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<PolygonManager<any>>;
}