UNPKG

1.49 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmMarker } from './../../directives/marker';
5import { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper';
6export declare class MarkerManager {
7 protected _mapsWrapper: GoogleMapsAPIWrapper;
8 protected _zone: NgZone;
9 protected _markers: Map<AgmMarker, Promise<google.maps.Marker>>;
10 constructor(_mapsWrapper: GoogleMapsAPIWrapper, _zone: NgZone);
11 convertAnimation(uiAnim: keyof typeof google.maps.Animation | null): Promise<google.maps.Animation>;
12 deleteMarker(markerDirective: AgmMarker): Promise<void>;
13 updateMarkerPosition(marker: AgmMarker): Promise<void>;
14 updateTitle(marker: AgmMarker): Promise<void>;
15 updateLabel(marker: AgmMarker): Promise<void>;
16 updateDraggable(marker: AgmMarker): Promise<void>;
17 updateIcon(marker: AgmMarker): Promise<void>;
18 updateOpacity(marker: AgmMarker): Promise<void>;
19 updateVisible(marker: AgmMarker): Promise<void>;
20 updateZIndex(marker: AgmMarker): Promise<void>;
21 updateClickable(marker: AgmMarker): Promise<void>;
22 updateAnimation(marker: AgmMarker): Promise<void>;
23 addMarker(marker: AgmMarker): void;
24 getNativeMarker(marker: AgmMarker): Promise<google.maps.Marker>;
25 createEventObservable<T extends (google.maps.MouseEvent | void)>(eventName: google.maps.MarkerMouseEventNames | google.maps.MarkerChangeOptionEventNames, marker: AgmMarker): Observable<T>;
26}