UNPKG

mappls-map-react-native

Version:

A Mappls GL react native module for creating custom maps

15 lines (11 loc) 1.34 kB
<!-- This file was autogenerated from MarkerView.js do not modify --> ## <MapplsGL.MarkerView /> ### MarkerView allows you to place a interactive react native marker to the map.<br/><br/>If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance<br/>.<br/>This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android<br/>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.<br/>See also #anchor. | | anchor | `shape` | `{x: 0.5, y: 0.5}` | `false` | Specifies the anchor being set on a particular point of the annotation.<br/>The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0],<br/>where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner.<br/>Note this is only for custom annotations not the default pin view.<br/>Defaults to the center of the view. | | &nbsp;&nbsp;x | `number` | `none` | `true` | `x` of anchor | | &nbsp;&nbsp;y | `number` | `none` | `true` | `y` of anchor | | children | `element` | `none` | `true` | Expects one child - can be container with multiple elements |