function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import Mapbox from '@rnmapbox/maps';
import { useRef } from 'react';
import React from 'react';
/**
 * RasterSource props
 *
 * @category Props
 */

/**
 * 支持tileJSON矢量瓦片渲染的数据来源
 *
  @category Component
 */
const RasterSource = /*#__PURE__*/React.forwardRef((props, ref) => {
  const {
    minZoom,
    maxZoom,
    children,
    ...others
  } = props;
  const rnSource = useRef();
  return /*#__PURE__*/React.createElement(Mapbox.RasterSource, _extends({
    ref: rnSource
  }, others, {
    minZoomLevel: minZoom,
    maxZoomLevel: maxZoom
  }), children);
});
export default RasterSource;
//# sourceMappingURL=RasterSource.js.map