'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _basicMapApiClass = require('../util/basicMapApiClass');

var _basicMapApiClass2 = _interopRequireDefault(_basicMapApiClass);

var _backgroundLayer = require('./vector/backgroundLayer');

var _backgroundLayer2 = _interopRequireDefault(_backgroundLayer);

var _circlePointLayer = require('./vector/circlePointLayer');

var _circlePointLayer2 = _interopRequireDefault(_circlePointLayer);

var _lineLayer = require('./vector/lineLayer');

var _lineLayer2 = _interopRequireDefault(_lineLayer);

var _polygonLayer = require('./vector/polygonLayer');

var _polygonLayer2 = _interopRequireDefault(_polygonLayer);

var _fillExtrusionLayer = require('./vector/fillExtrusionLayer');

var _fillExtrusionLayer2 = _interopRequireDefault(_fillExtrusionLayer);

var _symbolLayer = require('./vector/symbolLayer');

var _symbolLayer2 = _interopRequireDefault(_symbolLayer);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var Layers = function (_BasicMapApi) {
  (0, _inherits3['default'])(Layers, _BasicMapApi);

  function Layers() {
    (0, _classCallCheck3['default'])(this, Layers);
    return (0, _possibleConstructorReturn3['default'])(this, (Layers.__proto__ || Object.getPrototypeOf(Layers)).apply(this, arguments));
  }

  (0, _createClass3['default'])(Layers, [{
    key: 'addBackgroundLayer',

    /**
     * 实例背景色图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */
    value: function addBackgroundLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _backgroundLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例圆点图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addCirclePointLayer',
    value: function addCirclePointLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _circlePointLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例线图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addLineLayer',
    value: function addLineLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _lineLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例面图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addPolygonLayer',
    value: function addPolygonLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _polygonLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例3D填充图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addFillExtrusionLayer',
    value: function addFillExtrusionLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _fillExtrusionLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例符号图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addSymbolLayer',
    value: function addSymbolLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _symbolLayer2['default'](this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例矢量文本图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addTextSymbolLayer',
    value: function addTextSymbolLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _symbolLayer.TextSymbolLayer(this.iMapApi, id, layerOptions, options);
    }

    /**
     * 实例矢量图标图层到地图Map中
     * @param {string} id 图层名称
     * @param {Object} layerOptions 原生MapboxGL图层的参数选项
     * @param {Object} options 图层参数选项
     */

  }, {
    key: 'addIconSymbolLayer',
    value: function addIconSymbolLayer(id) {
      var layerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

      return new _symbolLayer.IconSymbolLayer(this.iMapApi, id, layerOptions, options);
    }
  }]);
  return Layers;
}(_basicMapApiClass2['default']); /**
                                   * @文件说明: 构建Map.Layers地图图层对象
                                   * @创建人: pjtools@vip.qq.com
                                   * @创建时间: 2020-05-22 14:50:56
                                   */

exports['default'] = Layers;