import * as L from 'leaflet'; import { AWCLeafletElement } from '../../internal/awc-leaflet.js'; import type { PropertyValues } from 'lit'; /** * @summary Element which defines an icon template for markers. * @documentation https://webcomponents.adeliom.io/?path=/docs/components-map-icon--documentation * @status experimental * @since 1.0 */ export default class AWCMapIcon extends AWCLeafletElement { static isLeafletIcon(node: Element): node is AWCMapIcon; /** * The `icon-url` attribute sets the URL to the icon image (absolute or relative to your script path). */ iconUrl: string; /** * The `icon-retina-url` attribute sets the URL to a retina sized version of the icon image (absolute or relative to your script path). Used for Retina screen devices. */ iconRetinaUrl: string; /** * The `icon-width` attribute sets the size of the icon image in pixels. */ iconWidth: number; /** * The `icon-height` attribute sets the size of the icon image in pixels. */ iconHeight: number; /** * The `icon-anchor-x` attribute sets the coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified, also can be set in CSS with negative margins. */ iconAnchorX: number; /** * The `icon-anchor-y` attribute sets the coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified, also can be set in CSS with negative margins. */ iconAnchorY: number; /** * The `shadow-url` attribute sets the URL to the icon shadow image. If not specified, no shadow image will be created. */ shadowUrl: string; /** * The `shadow-retina-url` attribute sets the URL to the retina sized version of the icon shadow image. If not specified, no shadow image will be created. Used for Retina screen devices. */ shadowRetinaUrl: string; /** * The `shadow-width` attribute sets the size of the shadow image in pixels. */ shadowWidth: number; /** * The `shadow-height` attribute sets the size of the shadow image in pixels. */ shadowHeight: number; /** * The `shadow-anchor-x` attribute sets the coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified). */ shadowAnchorX: number; /** * The `shadow-anchor-y` attribute sets the coordinates of the "tip" of the shadow (relative to its top left corner) (the same as iconAnchor if not specified). */ shadowAnchorY: number; /** * The `popup-anchor-x` attribute sets the coordinates of the point from which popups will "open", relative to the icon anchor. */ popupAnchorX: number; /** * The `popupanchory` attribute sets the coordinates of the point from which popups will "open", relative to the icon anchor. */ popupAnchorY: number; /** * The `class-name` attribute sets a custom class name to assign to both icon and shadow images. Empty by default. */ className: string; private icon; getIcon(): L.Icon; updated(changed: PropertyValues): void; }