egovamap 0.15.26 → 0.15.27

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');
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);
@@ -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.27",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {