egovamap 0.33.15 → 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.
|
@@ -425,6 +425,13 @@ var EGovaGISMap = function (
|
|
|
425
425
|
dragExtentLimit: context.dragExtentLimit,
|
|
426
426
|
style: "",
|
|
427
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
|
+
}
|
|
434
|
+
|
|
428
435
|
if (mapConfig && mapConfig.params) {
|
|
429
436
|
params.controls = mapConfig.params;
|
|
430
437
|
}
|
package/egovamap/egovamap.js
CHANGED
|
@@ -5524,12 +5524,12 @@ var EGovaMap = function (
|
|
|
5524
5524
|
}
|
|
5525
5525
|
};
|
|
5526
5526
|
|
|
5527
|
-
|
|
5528
|
-
|
|
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
|
|