egovamap 0.21.7 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/egovamap/egovaBI.js +1 -1
- package/egovamap/egovamap.js +12 -0
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -123,7 +123,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
123
123
|
p.maxZoom = options.common.endLevel;
|
|
124
124
|
p.symbolType = -1;
|
|
125
125
|
p.symbolUrl = options.textStyle.symbolUrl || "location.png";
|
|
126
|
-
p.hSymbolUrl = options
|
|
126
|
+
if(options.selected && options.selected.hSymbolUrl) p.hSymbolUrl = options.selected.hSymbolUrl;
|
|
127
127
|
p.scale = options.textStyle.scale;
|
|
128
128
|
p.angle = options.textStyle.angle;
|
|
129
129
|
//classify symbol
|
package/egovamap/egovamap.js
CHANGED
|
@@ -4368,6 +4368,18 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
4368
4368
|
// EGovaBI(globeMap).bind(this)();
|
|
4369
4369
|
EGovaBI.call(this, globeMap, gisMap, mapType);
|
|
4370
4370
|
gisMobileMap && EgovamapMEx.call(this, gisMobileMap);
|
|
4371
|
+
|
|
4372
|
+
//解决html2canvas截图空白问题
|
|
4373
|
+
HTMLCanvasElement.prototype.getContext = function (origFn) {
|
|
4374
|
+
return function (type, attributes) {
|
|
4375
|
+
if (type === 'webgl') {
|
|
4376
|
+
attributes = Object.assign({}, attributes, {
|
|
4377
|
+
preserveDrawingBuffer: true,
|
|
4378
|
+
});
|
|
4379
|
+
}
|
|
4380
|
+
return origFn.call(this, type, attributes);
|
|
4381
|
+
};
|
|
4382
|
+
}(HTMLCanvasElement.prototype.getContext);
|
|
4371
4383
|
}
|
|
4372
4384
|
|
|
4373
4385
|
var EGovaMapUtils = {
|