Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 1.46 KB

MarkerView.md

File metadata and controls

16 lines (13 loc) · 1.46 KB

<MapLibreGL.MarkerView />

MarkerView allows you to place a interactive react native marker to the map.

If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance
.
This is based on MakerView plugin on Android
and PointAnnotation on iOS.

props

Prop Type Default Required Description
coordinate Array none true The center point (specified as a map coordinate) of the marker.
See also #anchor.
anchor shape {x: 0.5, y: 0.5} false Specifies the anchor being set on a particular point of the annotation.
The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],
where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.
Note this is only for custom annotations not the default pin view.
Defaults to the center of the view.
  x number none true x of anchor
  y number none true y of anchor
allowOverlap boolean false false FIX ME NO DESCRIPTION
isSelected boolean false false FIX ME NO DESCRIPTION
children ReactReactElement none true Expects one child - can be container with multiple elements