Marker
Click the marker to change its color.
#
Example#
Code#
Options#
anchorAt which coordinates [lat, lng]
to anchor the marker with the map.
#
width and heightSize of the marker. Any of the two can be omitted.
#
payloadRandom payload that will be returned on events.
#
hoverShould we show the "hover" state of the marker? Default: undefined
#
Events#
onClick({ event: HTMLMouseEvent, anchor: Point, payload: any }) => void
#
onContextMenu({ event: HTMLMouseEvent, anchor: Point, payload: any }) => void
#
onMouseOver({ event: HTMLMouseEvent, anchor: Point, payload: any }) => void
#
onMouseOut({ event: HTMLMouseEvent, anchor: Point, payload: any }) => void