|
44 | 44 | /******/ // define getter function for harmony exports |
45 | 45 | /******/ __webpack_require__.d = function(exports, name, getter) { |
46 | 46 | /******/ if(!__webpack_require__.o(exports, name)) { |
47 | | -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
| 47 | +/******/ Object.defineProperty(exports, name, { |
| 48 | +/******/ configurable: false, |
| 49 | +/******/ enumerable: true, |
| 50 | +/******/ get: getter |
| 51 | +/******/ }); |
48 | 52 | /******/ } |
49 | 53 | /******/ }; |
50 | 54 | /******/ |
51 | 55 | /******/ // define __esModule on exports |
52 | 56 | /******/ __webpack_require__.r = function(exports) { |
53 | | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
54 | | -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
55 | | -/******/ } |
56 | 57 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
57 | 58 | /******/ }; |
58 | 59 | /******/ |
59 | | -/******/ // create a fake namespace object |
60 | | -/******/ // mode & 1: value is a module id, require it |
61 | | -/******/ // mode & 2: merge all properties of value into the ns |
62 | | -/******/ // mode & 4: return value when already ns object |
63 | | -/******/ // mode & 8|1: behave like require |
64 | | -/******/ __webpack_require__.t = function(value, mode) { |
65 | | -/******/ if(mode & 1) value = __webpack_require__(value); |
66 | | -/******/ if(mode & 8) return value; |
67 | | -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
68 | | -/******/ var ns = Object.create(null); |
69 | | -/******/ __webpack_require__.r(ns); |
70 | | -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
71 | | -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
72 | | -/******/ return ns; |
73 | | -/******/ }; |
74 | | -/******/ |
75 | 60 | /******/ // getDefaultExport function for compatibility with non-harmony modules |
76 | 61 | /******/ __webpack_require__.n = function(module) { |
77 | 62 | /******/ var getter = module && module.__esModule ? |
@@ -58940,7 +58925,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" |
58940 | 58925 | * @fires mapboxgl.supermap.HeatMapLayer#featuresadded |
58941 | 58926 | * @fires mapboxgl.supermap.HeatMapLayer#changelayer |
58942 | 58927 | * @fires mapboxgl.supermap.HeatMapLayer#featuresremoved |
58943 | | - * |
| 58928 | + * |
58944 | 58929 | */ |
58945 | 58930 | var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) { |
58946 | 58931 | _inherits(HeatMapLayer, _mapboxgl$Evented); |
@@ -59151,7 +59136,6 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) { |
59151 | 59136 | this.rootCanvas.height = this.maxHeight = parseInt(mapCanvas.height); |
59152 | 59137 | _iclientCommon.CommonUtil.modifyDOMElement(this.rootCanvas, null, null, null, "absolute", null, null, this.opacity); |
59153 | 59138 | this.canvasContext = this.rootCanvas.getContext('2d'); |
59154 | | - |
59155 | 59139 | this.mapContainer.appendChild(this.rootCanvas); |
59156 | 59140 | } |
59157 | 59141 |
|
@@ -59190,7 +59174,7 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) { |
59190 | 59174 | * @event mapboxgl.supermap.HeatMapLayer#featuresadded |
59191 | 59175 | * @description 要素添加完成之后触发。 |
59192 | 59176 | * @property {GeoJSONObject} features - 被添加的要素。 |
59193 | | - * @property {boolean} succeed - 要素是否成功添加。 |
| 59177 | + * @property {boolean} succeed - 要素是否成功添加。 |
59194 | 59178 | */ |
59195 | 59179 | this.fire(this.EVENT_TYPES[0], { features: features, succeed: true }); |
59196 | 59180 | //支持更新features,刷新底图 |
@@ -59232,7 +59216,7 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) { |
59232 | 59216 | * @event mapboxgl.supermap.HeatMapLayer#changelayer |
59233 | 59217 | * @description 图层属性改变之后触发。 |
59234 | 59218 | * @property {Object} layer - 图层。 |
59235 | | - * @property {string} property - 被改变的图层属性。 |
| 59219 | + * @property {string} property - 被改变的图层属性。 |
59236 | 59220 | */ |
59237 | 59221 | this.fire('changelayer', { layer: this, property: "opacity" }); |
59238 | 59222 | } |
@@ -59599,6 +59583,8 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) { |
59599 | 59583 | this.rootCanvas.style.height = canvas.style.height; |
59600 | 59584 | this.rootCanvas.width = this.maxWidth = parseInt(canvas.width); |
59601 | 59585 | this.rootCanvas.height = this.maxHeight = parseInt(canvas.height); |
| 59586 | + var devicePixelRatio = window.devicePixelRatio || 1; |
| 59587 | + devicePixelRatio !== 1 && this.canvasContext && this.canvasContext.scale(devicePixelRatio, devicePixelRatio); |
59602 | 59588 | this.refresh(); |
59603 | 59589 | } |
59604 | 59590 | }, { |
|
0 commit comments