egovamap 0.33.16 → 0.33.17

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.
@@ -413,7 +413,7 @@ var EGovaGISMap = function (
413
413
  gisConfig = mapConfig.gisConfig ? mapConfig.gisConfig : null,
414
414
  useMask = false,
415
415
  humanID = context.humanID;
416
- var params = Object.assign({
416
+ var params = {
417
417
  contain: that.id,
418
418
  serverURL: context.gisServerURL,
419
419
  misURL: context.rootPath,
@@ -424,7 +424,13 @@ var EGovaGISMap = function (
424
424
  humanID: humanID,
425
425
  dragExtentLimit: context.dragExtentLimit,
426
426
  style: "",
427
- }, context.options || {});
427
+ };
428
+ var contextOptions = context.options;
429
+ if(contextOptions && typeof contextOptions === "object") {
430
+ for (var key in contextOptions) {
431
+ params[key] = contextOptions[key];
432
+ }
433
+ }
428
434
 
429
435
  if (mapConfig && mapConfig.params) {
430
436
  params.controls = mapConfig.params;
@@ -5524,12 +5524,12 @@ var EGovaMap = function (
5524
5524
  }
5525
5525
  };
5526
5526
 
5527
- that.destroyMap = function (){
5528
- if (scene == null) return;
5527
+ that.destroyMap = function () {
5528
+ if (scene == null) return;
5529
5529
  if (gisMap != null) {
5530
5530
  gisMap.destroyMap();
5531
5531
  }
5532
- };
5532
+ };
5533
5533
 
5534
5534
  that.initMap(containerID, callback, mapType, mapConfig);
5535
5535
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.33.16",
3
+ "version": "0.33.17",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {