/// import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChange } from '@angular/core'; import { Observable, ReplaySubject } from 'rxjs'; import { FitBoundsAccessor, FitBoundsDetails } from '../services/fit-bounds'; import { MarkerManager } from '../services/managers/marker-manager'; import { AgmInfoWindow } from './info-window'; /** * AgmMarker renders a map marker inside a {@link AgmMap}. * * ### Example * ```typescript * import { Component } from '@angular/core'; * * @Component({ * selector: 'my-map-cmp', * styles: [` * .agm-map-container { * height: 300px; * } * `], * template: ` * * * * * ` * }) * ``` */ export declare class AgmMarker implements OnDestroy, OnChanges, AfterContentInit, FitBoundsAccessor { private _markerManager; /** * The latitude position of the marker. */ latitude: number; /** * The longitude position of the marker. */ longitude: number; /** * The title of the marker. */ title: string; /** * The label (a single uppercase character) for the marker. */ label: string | google.maps.MarkerLabel; /** * If true, the marker can be dragged. Default value is false. */ draggable: boolean; /** * Icon (the URL of the image) for the foreground. */ iconUrl: string | google.maps.Icon | google.maps.Symbol; /** * If true, the marker is visible */ visible: boolean; /** * Whether to automatically open the child info window when the marker is clicked. */ openInfoWindow: boolean; /** * The marker's opacity between 0.0 and 1.0. */ opacity: number; /** * All markers are displayed on the map in order of their zIndex, with higher values displaying in * front of markers with lower values. By default, markers are displayed according to their * vertical position on screen, with lower markers appearing in front of markers further up the * screen. */ zIndex: number; /** * If true, the marker can be clicked. Default value is true. */ clickable: boolean; /** * Which animation to play when marker is added to a map. * This can be 'BOUNCE' or 'DROP' */ animation: keyof typeof google.maps.Animation; /** * This event is fired when the marker's animation property changes. */ animationChange: EventEmitter<"BOUNCE" | "DROP">; /** * This event emitter gets emitted when the user clicks on the marker. */ markerClick: EventEmitter; /** * This event emitter gets emitted when the user clicks twice on the marker. */ markerDblClick: EventEmitter; /** * This event is fired when the user rightclicks on the marker. */ markerRightClick: EventEmitter; /** * This event is fired when the user starts dragging the marker. */ dragStart: EventEmitter; /** * This event is repeatedly fired while the user drags the marker. */ drag: EventEmitter; /** * This event is fired when the user stops dragging the marker. */ dragEnd: EventEmitter; /** * This event is fired when the user mouses over the marker. */ mouseOver: EventEmitter; /** * This event is fired when the user mouses outside the marker. */ mouseOut: EventEmitter; /** @internal */ infoWindow: QueryList; private _markerAddedToManger; private _id; private _observableSubscriptions; protected readonly _fitBoundsDetails$: ReplaySubject; constructor(_markerManager: MarkerManager); ngAfterContentInit(): void; private handleInfoWindowUpdate; /** @internal */ ngOnChanges(changes: { [key: string]: SimpleChange; }): void; /** @internal */ getFitBoundsDetails$(): Observable; protected _updateFitBoundsDetails(): void; private _addEventListeners; /** @internal */ id(): string; /** @internal */ toString(): string; /** @internal */ ngOnDestroy(): void; }