Defines a location on a map.

To define an icon for the location place a hylo-map-icon tag inside the hylo-map-location tag. You can create a mouse over layer by placing a hylo-map-location-over tag inside the hylo-map-location tag. This hylo-map-location-over tag will become the mouse over layer.

Properties

disableDigitCorrection: boolean

By default, if no digit dot "." is set but a digit comma ",", the comma will be replaced with a dot. Disables this digit correction.

dontBound: boolean

Should this location be excluded when calculating the bounds and/or center of the map.

href: string

A href which will be open on click of the location (optional). Not supported for leaflet yet.

latitude: string

The latitude of the location.

longitude: string

The longitude of the location.

marker: any

Will be set with the actual marker object of the map.

target: string

The target of the href (optional). Not supported for leaflet yet.

Methods

  • Returns the hylo-map-icon component located inside this component.

    Returns Promise<HTMLHyloMapIconElement>

  • Returns the hylo-map-location-over component located inside this component.

    Returns Promise<HTMLHyloMapLocationOverElement>

Events

markerSet: EventEmitter<any>

The marker of this location got set.

Emits the marker.

Generated using TypeDoc