import { AfterContentInit, EventEmitter, OnDestroy } from "@angular/core"; import { DivIcon, DragEndEvent, Icon, LatLng, LatLngLiteral, LatLngTuple, LeafletEvent, LeafletMouseEvent, Marker, PopupEvent, TooltipEvent } from "leaflet"; import { LayerGroupProvider } from "./layer-group.provider"; import { LayerProvider } from "./layer.provider"; import { MarkerProvider } from "./marker.provider"; import * as i0 from "@angular/core"; /** * Angular2 directive for markers of Leaflet. * * *You can use this directive in an Angular2 template after importing `YagaModule`.* * * How to use in a template: * ```html * * * * * ``` * * @link http://leafletjs.com/reference-1.2.0.html#marker Original Leaflet documentation * @link https://leaflet-ng2.yagajs.org/latest/browser-test?grep=Marker%20Directive Unit-Test * @link https://leaflet-ng2.yagajs.org/latest/coverage/lcov-report/lib/marker.directive.js.html * Test coverage * @link https://leaflet-ng2.yagajs.org/latest/typedoc/classes/marker.directive.js.html API documentation * @example https://leaflet-ng2.yagajs.org/latest/examples/marker-directive/ */ export declare class MarkerDirective extends Marker implements AfterContentInit, OnDestroy { protected layerGroupProvider: LayerGroupProvider; /** * Two-Way bound property for the latlng-position of the geometry. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ positionChange: EventEmitter; /** * Two-Way bound property for the latitude of the geometry. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ latChange: EventEmitter; /** * Two-Way bound property for the longitude of the geometry. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ lngChange: EventEmitter; /** * Two-Way bound property for the opacity of the geometry. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setopacity Original Leaflet documentation */ opacityChange: EventEmitter; /** * Two-Way bound property for the display status of the geometry. * Use it with `` * or `` */ displayChange: EventEmitter; /** * Two-Way bound property for the offset of the zIndex. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.3.0.html#marker-zindexoffset Original Leaflet documentation */ zIndexOffsetChange: EventEmitter; /** * Two-Way bound property for the draggable state. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.3.0.html#marker-dragging Original Leaflet documentation */ draggableChange: EventEmitter; /** * Two-Way bound property for the icon. * Use it with `` * or `` * @link http://leafletjs.com/reference-1.3.0.html#marker-seticon Original Leaflet documentation */ iconChange: EventEmitter; tooltipOpenedChange: EventEmitter; popupOpenedChange: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-dragend Original Leaflet documentation */ dragendEvent: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-dragstart Original Leaflet documentation */ dragstartEvent: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-movestart Original Leaflet documentation */ movestartEvent: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-drag Original Leaflet documentation */ dragEvent: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-moveend Original Leaflet documentation */ moveendEvent: EventEmitter; /** * From leaflet fired add event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-add Original Leaflet documentation */ addEvent: EventEmitter; /** * From leaflet fired remove event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-remove Original Leaflet documentation */ removeEvent: EventEmitter; /** * From leaflet fired popupopen event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-popupopen Original Leaflet documentation */ popupopenEvent: EventEmitter; /** * From leaflet fired popupclose event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-popupclose Original Leaflet documentation */ popupcloseEvent: EventEmitter; /** * From leaflet fired tooltipopen event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-tooltipopen Original Leaflet documentation */ tooltipopenEvent: EventEmitter; /** * From leaflet fired tooltipclose event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-tooltipclose Original Leaflet documentation */ tooltipcloseEvent: EventEmitter; /** * From leaflet fired click event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-click Original Leaflet documentation */ clickEvent: EventEmitter; /** * From leaflet fired dblclick event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-dblclick Original Leaflet documentation */ dblclickEvent: EventEmitter; /** * From leaflet fired mousedown event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-mousedown Original Leaflet documentation */ mousedownEvent: EventEmitter; /** * From leaflet fired mouseover event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-mouseover Original Leaflet documentation */ mouseoverEvent: EventEmitter; /** * From leaflet fired mouseout event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-mouseout Original Leaflet documentation */ mouseoutEvent: EventEmitter; /** * From leaflet fired contextmenu event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-contextmenu Original Leaflet documentation */ contextmenuEvent: EventEmitter; /** * Internal property to stop further processing while it is not initialized */ private initialized; constructor(layerGroupProvider: LayerGroupProvider, layerProvider: LayerProvider, markerProvider: MarkerProvider); /** * Internal method that provides the initialization of the directive */ ngAfterContentInit(): void; /** * Internal method to provide the removal of the layer in Leaflet, when removing it from the Angular template */ ngOnDestroy(): void; /** * Two-Way bound property for the display status of the layer. * Use it with `` or `` */ set display(val: boolean); get display(): boolean; /** * Derived method of the original setLatLng method. * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ setLatLng(val: LatLng | LatLngLiteral | LatLngTuple): this; /** * Two-Way bound property for the position of the marker. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ set position(val: LatLng); get position(): LatLng; /** * Two-Way bound property for the position of the marker. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ set lat(val: number); get lat(): number; /** * Two-Way bound property for the position of the marker. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setlatlng Original Leaflet documentation */ set lng(val: number); get lng(): number; /** * Derived method of the original setOpacity method. * @link http://leafletjs.com/reference-1.2.0.html#marker-setopacity Original Leaflet documentation */ setOpacity(val: number): this; /** * Two-Way bound property for the opacity of the marker. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-setopacity Original Leaflet documentation */ set opacity(val: number | undefined); get opacity(): number | undefined; /** * Two-Way bound property for the state of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-openpopup Original Leaflet documentation */ set popupOpened(val: boolean); get popupOpened(): boolean; /** * Two-Way bound property for the state of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-opentooltip Original Leaflet documentation */ set tooltipOpened(val: boolean); get tooltipOpened(): boolean; /** * Derived method of the original setIcon method. * @link http://leafletjs.com/reference-1.2.0.html#marker-seticon Original Leaflet documentation */ setIcon(val: Icon | DivIcon): this; /** * Two-Way bound property for the state of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-seticon Original Leaflet documentation */ set icon(val: Icon | DivIcon); get icon(): Icon | DivIcon; /** * Two-Way bound property for the state of the dragging. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-dragging Original Leaflet documentation */ set draggable(val: boolean); get draggable(): boolean; /** * Derived method of the original setZIndexOffset method. * @link http://leafletjs.com/reference-1.2.0.html#marker-zindexoffset Original Leaflet documentation */ setZIndexOffset(val: number): this; /** * Two-Way bound property for the offset of the zIndex. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#marker-zindexoffset Original Leaflet documentation */ set zIndexOffset(val: number); get zIndexOffset(): number; /** * Input for the title. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-title Original Leaflet documentation */ set title(val: string); get title(): string; /** * Input for the alternative text. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#marker-title Original Leaflet documentation */ set alt(val: string | undefined); get alt(): string | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }