From e7655c02e52524e0eac74658df535da861eed3b6 Mon Sep 17 00:00:00 2001 From: a_small_tree_of_joy Date: Fri, 28 Sep 2018 10:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86ES5=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/JS/openlayers_echart.es5.js | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/JS/openlayers_echart.es5.js b/dist/JS/openlayers_echart.es5.js index f9b04f5..43fb70d 100644 --- a/dist/JS/openlayers_echart.es5.js +++ b/dist/JS/openlayers_echart.es5.js @@ -1,5 +1,9 @@ 'use strict'; +Object.defineProperty(exports, "__esModule", { + value: true +}); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -58,7 +62,7 @@ var ADLayer = function () { }, { key: '_bindEvent', value: function _bindEvent() { - this._map.on('pointerdrag', this._moveHandler("onMoveEnd")); + this._map.on('postrender', this._moveHandler("onMoveEnd")); this._map.getView().on('change:resolution', this._moveHandler("onMoveEnd")); } }, { @@ -365,5 +369,4 @@ ADLayer.Element = { } }; -// window["ADLayer"] = ADLayer; -// export default ADLayer; +exports.default = ADLayer; diff --git a/package.json b/package.json index abda0a8..a346730 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayers_echart", - "version": "1.0.4", + "version": "1.0.5", "description": "", "main": "index.js", "scripts": {