egovamap 0.24.5 → 0.24.6
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.
|
@@ -347,6 +347,12 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
347
347
|
if (!window.eMapList) {
|
|
348
348
|
window.eMapList = {};
|
|
349
349
|
}
|
|
350
|
+
|
|
351
|
+
if (typeof eMap === 'undefined') {
|
|
352
|
+
console.error('eMap未初始化');
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
|
|
350
356
|
window.eMapList[that.id] = new eMap.default(
|
|
351
357
|
params,
|
|
352
358
|
that.globalCallback.bind(that));
|
package/egovamap/egovamap.js
CHANGED
|
@@ -81,6 +81,11 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
that.initMap = function (container, callback, mapType, _mapConfig, mapParam) {
|
|
84
|
+
if (!container) {
|
|
85
|
+
console.error('container为空');
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
84
89
|
$mapsContainer = getMapContainer(container);
|
|
85
90
|
that.uniqueID = getUniqueID($mapsContainer);
|
|
86
91
|
msgPrefix = that.uniqueID;
|
|
@@ -188,7 +193,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
188
193
|
}
|
|
189
194
|
}
|
|
190
195
|
} catch (e) {
|
|
191
|
-
|
|
196
|
+
console.error(e.message);
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
//绑定地图切换事件
|
package/egovamap/egovamobile.js
CHANGED
|
@@ -209,6 +209,12 @@ var EGovaMobileMap = function ($container, pScene, prefix, gisParams, mapConfig,
|
|
|
209
209
|
if (!window.eMapList) {
|
|
210
210
|
window.eMapList = {};
|
|
211
211
|
}
|
|
212
|
+
|
|
213
|
+
if (typeof eMap === 'undefined') {
|
|
214
|
+
console.error('eMap未初始化');
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
212
218
|
window.eMapList[that.id] = new eMap(
|
|
213
219
|
params,
|
|
214
220
|
that.onMapLoaded.bind(that));
|