"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * @文件说明: 获取地图鼠标点位缓冲成BBOX范围
 * @创建人: pjtools@vip.qq.com
 * @创建时间: 2020-05-28 11:17:17
 */

function mapEventToBoundingBox(mapEvent) {
  var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

  return [[mapEvent.point.x - buffer, mapEvent.point.y - buffer], [mapEvent.point.x + buffer, mapEvent.point.y + buffer]];
}

exports["default"] = mapEventToBoundingBox;