egovamap 0.21.6 → 0.22.0

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.
@@ -123,6 +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?.selected?.hSymbolUrl;
126
127
  p.scale = options.textStyle.scale;
127
128
  p.angle = options.textStyle.angle;
128
129
  //classify symbol
@@ -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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.21.6",
3
+ "version": "0.22.0",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {