"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _maps = _interopRequireDefault(require("@rnmapbox/maps"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
 * 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(_maps.default.MarkerView, {
    coordinate: position,
    anchor: newAnchor,
    allowOverlap: allowOverlap
  }, children);
};
var _default = exports.default = Marker;
//# sourceMappingURL=Marker.js.map