Skip to main content

SVGPin

The svg ping component can be provided to the marker render property. It takes the following properties:

  • point: The screen location,
  • size: An optional parameter to scale the size of the pin; defaults to 1,
  • color: An optional parameter to control the color of the pin,
  • onMouseOut:L An optional event handler triggered when the mouse has left the pin,
  • onMouseOver: An optional event handle triggered when the mouse is over the pin,
  • onClick: An optional event handler triggered when the pin is clicked,
  • onContextMenu: An optional event handler triggered on a right mouse click.