import Mapbox from '@rnmapbox/maps';
/**
 * Marker支持可交互的React native组件
 *
 * @category Props
 */

/**
  @category Component
 */
const Marker = props => {
  const {
    position,
    anchor,
    allowOverlap = false,
    children
  } = props;
  const newAnchor = anchor ? {
    x: anchor[0],
    y: anchor[1]
  } : {
    x: 0.5,
    y: 0.5
  };
  return /*#__PURE__*/React.createElement(Mapbox.MarkerView, {
    coordinate: position,
    anchor: newAnchor,
    allowOverlap: allowOverlap
  }, children);
};
export default Marker;
//# sourceMappingURL=Marker.js.map