egovamap 0.15.26 → 0.15.29

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.
@@ -93,6 +93,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
93
93
  }
94
94
 
95
95
  that.id = msgPrefix ? msgPrefix + "_emap" : 'emap';
96
+ that.gisDebug = (getLocalStorageItem('gisDebug')=='true');
96
97
  //that.gisMapContainer = $container.getElementsByClassName(id)[0];
97
98
  //that.gisMapContainer = $container.find("#" + that.id)[0];
98
99
  that.gisMapContainer = document.getElementById(that.id);
@@ -302,7 +303,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
302
303
  _egovagisviewerUrl = gisServerURL;
303
304
  var mainScript = document.createElement('script');
304
305
  mainScript.setAttribute('type', 'text/javascript');
305
- var distOrSource = getLocalStorageItem('gisDebug') ? 'source' : 'dist';
306
+ var distOrSource = that.gisDebug ? 'source' : 'dist';
306
307
  var cssUrl = gisServerURL + '/library/egovaviewer/build/' + distOrSource + '/index.css';
307
308
  var mainLink = document.createElement('link');
308
309
  // mainLink.setAttribute('name','egoavagisviewer_' + uniqueID);
@@ -364,7 +365,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
364
365
  that.globalCallback = function (callbackName, params) {
365
366
  if (that.callbackList[callbackName]) {
366
367
  var args = [{ args: params }];
367
- console.log(callbackName);
368
+ that.gisDebug && console.log(callbackName);
368
369
  that.callbackList[callbackName].apply(that, args);
369
370
  } else {
370
371
  that.fireCallback(callbackName, params);
@@ -390,7 +391,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
390
391
  args.push(arguments[i]);
391
392
  }
392
393
  }
393
- console.log(funcName);
394
+ that.gisDebug && console.log(funcName);
394
395
  return eMap[funcName].apply(eMap, args);
395
396
  }
396
397
  }
@@ -485,7 +486,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
485
486
 
486
487
  that.fireCallback = function (msgId, msgData, stopOnTop) {
487
488
  var args = { args: msgData };
488
- console.log(msgId);
489
+ that.gisDebug && console.log(msgId);
489
490
  scene.fire(msgPrefix + ":" + msgId, args, stopOnTop);
490
491
  }
491
492
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.26",
3
+ "version": "0.15.29",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {