import { ElementRef, EventEmitter, OnDestroy } from "@angular/core"; import { Content, LatLng, LatLngExpression, LeafletEvent, Point, Popup } from "leaflet"; import { LayerProvider } from "./layer.provider"; import * as i0 from "@angular/core"; /** * Angular2 directive for Leaflet popups. * * *You can use this directive in an Angular2 template after importing `YagaModule`.* * * How to use in a template: * ```html * * * *

You can pass your content right here!

*
*
*
* ``` */ export declare class PopupDirective extends Popup implements OnDestroy { layerProvider: LayerProvider; /** * Two-Way bound property for the content of a popup. * Use it with `` or `` * * You can also pass the content directly within the web-component as view-content * @link http://leafletjs.com/reference-1.2.0.html#popup-setcontent Original Leaflet documentation */ contentChange: EventEmitter; /** * Two-Way bound property for the state of being opened. * Use it with `` or `` * * You can also use the `popupOpened` property in the parent directives * @link http://leafletjs.com/reference-1.2.0.html#popup-openon Original Leaflet documentation */ openedChange: EventEmitter; /** * Two-Way bound property for the latitude position of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ latChange: EventEmitter; /** * Two-Way bound property for the longitude position of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ lngChange: EventEmitter; /** * Two-Way bound property for the position (LatLng) of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ positionChange: EventEmitter; /** * From leaflet fired open event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-popupopen Original Leaflet documentation */ openEvent: EventEmitter; /** * From leaflet fired close event. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-popupclose Original Leaflet documentation */ closeEvent: EventEmitter; constructor(elementRef: ElementRef, layerProvider: LayerProvider); ngOnDestroy(): void; /** * Derived method of the original setContent method. * @link http://leafletjs.com/reference-1.2.0.html#popup-setcontent Original Leaflet documentation */ setContent(content: any): this; /** * Two-Way bound property for the content. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setcontent Original Leaflet documentation */ set content(val: Content); get content(): Content; /** * Two-Way bound property for the opened state. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-openon Original Leaflet documentation */ set opened(val: boolean); get opened(): boolean; /** * Derived method of the original setLatLng method. * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ setLatLng(latlng: LatLngExpression): this; /** * Two-Way bound property for the latitude position of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ set lat(val: number); get lat(): number; /** * Two-Way bound property for the longitude position of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ set lng(val: number); get lng(): number; /** * Two-Way bound property for the position of the popup. * Use it with `` or `` * @link http://leafletjs.com/reference-1.2.0.html#popup-setlatlng Original Leaflet documentation */ set position(val: LatLng); get position(): LatLng; /** * Input for the maxWidth. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-maxwidth Original Leaflet documentation */ set maxWidth(val: number | undefined); get maxWidth(): number | undefined; /** * Input for the minWidth. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-minwidth Original Leaflet documentation */ set minWidth(val: number | undefined); get minWidth(): number | undefined; /** * Input for the maxHeight. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-maxheight Original Leaflet documentation */ set maxHeight(val: number | undefined); get maxHeight(): number | undefined; /** * Input for the autoPan. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-autopan Original Leaflet documentation */ set autoPan(val: boolean); get autoPan(): boolean; /** * Input for the autoPanPaddingTopLeft. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-autopanpaddingtopleft Original Leaflet documentation */ set autoPanPaddingTopLeft(val: Point); get autoPanPaddingTopLeft(): Point; /** * Input for the autoPanPaddingBottomRight. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-autopanpaddingbottomleft Original Leaflet documentation */ set autoPanPaddingBottomRight(val: Point); get autoPanPaddingBottomRight(): Point; /** * Input for the autoPanPadding. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-autopanpadding Original Leaflet documentation */ set autoPanPadding(val: Point); get autoPanPadding(): Point; /** * Input for the keyInView. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-keyinview Original Leaflet documentation */ set keepInView(val: boolean); get keepInView(): boolean; /** * Input for the closeButton. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-closebutton Original Leaflet documentation */ set closeButton(val: boolean); get closeButton(): boolean; /** * Input for the autoClose. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-autoclose Original Leaflet documentation */ set autoClose(val: boolean); get autoClose(): boolean; /** * Input for the CSS class name. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-classname Original Leaflet documentation */ set className(val: string | undefined); get className(): string | undefined; /** * Input for the pane. * Use it with `` * @link http://leafletjs.com/reference-1.2.0.html#popup-pane Original Leaflet documentation */ set pane(val: string | undefined); get pane(): string | undefined; reopen(force?: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }