htmlElement
htmlElement: undefined | HTMLElement
An Optional (unique) HTMLElement to display with this Marker. Generally, HTMLElements are more expensive than images and labels, since they are added/removed from the DOM every frame. But, some types of markers are more convenient to construct as HTMLElements, and if there aren't too many of them performance is fine.
note HTMLElements may only appear in the DOM one time. Therefore, they may not be shared by more than one Marker. You must ensure that each marker has its own HTMLElement. For this reason, you should probably only use HTMLElements in Markers if each one is meant to be unique. For shared content, use images.
Defined in
- core/frontend/src/Marker.ts Line 121
Last Updated: 30 November, 2023