'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 _fullscreen = require('./fullscreen');

var _fullscreen2 = _interopRequireDefault(_fullscreen);

var _draw = require('./draw');

var _draw2 = _interopRequireDefault(_draw);

var _measure = require('./measure');

var _measure2 = _interopRequireDefault(_measure);

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

/**
 * @文件说明: 构建Map.Interfaces地图交互接口对象
 * @创建人: pjtools@vip.qq.com
 * @创建时间: 2020-05-21 10:09:45
 */

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

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

  (0, _createClass3['default'])(Interfaces, [{
    key: 'fullscreen',

    /**
     * 获取地图“全屏”实例对象
     */
    value: function fullscreen() {
      return new _fullscreen2['default'](this.iMapApi);
    }

    /**
     * 获取地图“绘制矢量图形”实例对象
     * @param {Object} options “绘制”交互的初始参数选项
     */

  }, {
    key: 'draw',
    value: function draw() {
      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      return new _draw2['default'](this.iMapApi, options);
    }

    /**
     * 获取地图“测量”实例对象
     */

  }, {
    key: 'measure',
    value: function measure() {
      return new _measure2['default'](this.iMapApi);
    }
  }]);
  return Interfaces;
}(_basicMapApiClass2['default']);

exports['default'] = Interfaces;