Skip to main content

GeomapSpot

<ui5-geomap-spot>

The ui5-geomap-spot defines the Spot webcomponent.

ES6 Module Import​

import "@ui5/webcomponents-geomap/dist/GeomapSpot.js";

Basic Sample​

Properties​

draggable​

DescriptionDescribes if the spot is draggable.
Typeboolean
Defaultfalse

icon​

DescriptionIcon of the spot displayed on the map.
Typestring
Default"map"

width​

DescriptionWidth of the spot displayed on the map.
Typestring
Default"2rem"

height​

DescriptionHeight of the spot displayed on the map.
Typestring
Default"2rem"

opacity​

DescriptionOpacity of the spot displayed on the map.
Typestring
Default"1"

color​

DescriptionColor of the spot displayed on the map.
Typestring
Default""

anchor​

DescriptionAnchor point of the marker element relative to the geographic coordinate. Determines which part of the marker element is placed at the exact lng/lat position. Use "bottom" (default) so the tip of a pin icon points to the coordinate. Accepted values: "center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right".
TypeMarkerOptions["anchor"]
Default"bottom"

lng​

DescriptionLongitude of the marker.
Typenumber
Default0

lat​

DescriptionLatitude of the marker.
Typenumber
Default0

Slots​

No slots available for this component.

Events​

click​

DescriptionFired once the spot is clicked.
TypeCustomEvent
BubblesNo
CancelableYes - via preventDefault()

double-click​

DescriptionFired on double-click of the spot.
TypeCustomEvent
BubblesNo
CancelableNo

right-click​

DescriptionFired on right-click of the spot.
TypeCustomEvent
BubblesNo
CancelableYes - via preventDefault()

mouseover​

DescriptionFired on mouseover of the spot.
TypeCustomEvent
BubblesNo
CancelableNo

mouseout​

DescriptionFired on mouseout of the spot.
TypeCustomEvent
BubblesNo
CancelableNo

Methods​

No methods available for this component.

CSS Parts​

No CSS parts available for this component.