"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.registerEventLayer = exports.registerEventGeometry = void 0;
var EVENT = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseMove', 'onMouseLeave'];

// 注册鼠标事件
var registerEventGeometry = exports.registerEventGeometry = function registerEventGeometry(layer, props) {
  EVENT.map(function (v) {
    layer[v] = function () {
      var options = layer.getProperties();
      props[v] && props[v](options);
    };
  });
};
var registerEventLayer = exports.registerEventLayer = function registerEventLayer(layer, props) {
  EVENT.map(function (v) {
    layer[v] = function (e) {
      props[v] && props[v](e);
    };
  });
};
//# sourceMappingURL=index.js.map
