egovamap 0.12.2 → 0.12.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.
@@ -380,9 +380,6 @@ var egovaBI = function(globeMap, gisMap, mapType){
380
380
  * @date: 2021-11-11 15:40:31
381
381
  */
382
382
  this.showPolyline_BI = function (layerName, positions = [], options = {}) {
383
- if (scene === null) {
384
- return;
385
- }
386
383
  if (globeMap !== null) {
387
384
  // 默认参数
388
385
  let defaultOpt = {
@@ -421,7 +418,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
421
418
  //click相关
422
419
  clickColor: "rgb(255, 255, 0.0)", // 点击后的颜色
423
420
  clickWidth: 30, // 点击后的宽度
424
- clickCallback: function(e) {console.log('click polyline', e)},
421
+ clickCallback: undefined, // function(e) {console.log('click polyline', e)},
425
422
  mouseOverCallBack: undefined
426
423
  }
427
424
  }
@@ -16,6 +16,8 @@ function setCookie(name,value){
16
16
  }
17
17
 
18
18
  function checkGisServerURL(url,callback){
19
+ if(!url) return;
20
+
19
21
  var cookieUrl = getCookie("gisUrl");
20
22
  var gisProxyList = url.split(";");
21
23
  cookieUrl&&gisProxyList.push(cookieUrl);
@@ -1077,12 +1079,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
1077
1079
  }
1078
1080
 
1079
1081
  /**查询表信息*/
1080
- that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage) {
1082
+ that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage, params) {
1081
1083
  var queryParam = {
1082
1084
  'tableName': tableName,
1083
1085
  'xFieldName': xFieldName,
1084
1086
  'yFieldName': yFieldName
1085
1087
  };
1088
+ if(params) queryParam = MapUtils.deepClones(true, {}, queryParam, params);
1089
+
1086
1090
  that.removeEventBind("queryObjectInfoCallback");
1087
1091
  that.bindEvent("queryObjectInfoCallback", callback);
1088
1092
  scene.fire(msgPrefix + ':queryObjectInfo', {args: [JSON.stringify(geoShapes), JSON.stringify(queryParam), usePage, currentPage, numPerPage]}, parentScene, false);
@@ -18,6 +18,8 @@ function setCookie(name, value) {
18
18
  }
19
19
 
20
20
  function checkGisServerURL(url, callback) {
21
+ if(!url) return;
22
+
21
23
  var cookieUrl = getCookie("gisUrl");
22
24
  var gisProxyList = url.split(";");
23
25
  cookieUrl && gisProxyList.push(cookieUrl);
@@ -829,7 +831,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
829
831
  }
830
832
 
831
833
  /* 初始化实时案件分布 */
832
- that.initRecCurrentV2Distribution = function (infoJson, colors, layerName, clickCallback) {
834
+ that.initRecCurrentV2Distribution = function (infoJson, colors, layerName, clickCallback, sizeScale) {
833
835
  if (scene == null || infoJson.length == 0)
834
836
  return;
835
837
  var cb = function (type, data) {
@@ -837,7 +839,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
837
839
  clickCallback(data);
838
840
  }
839
841
  };
840
- that.callMap('initRecCurrentV2Distribution', infoJson, colors, layerName, cb);
842
+ that.callMap('initRecCurrentV2Distribution', infoJson, colors, layerName, cb, sizeScale);
841
843
  }
842
844
  /* 显示实时案件分布 */
843
845
  that.showRecCurrentV2Distribution = function (infoJson, zoom, highLight) {
@@ -1559,12 +1561,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1559
1561
  }
1560
1562
 
1561
1563
  /**查询表信息*/
1562
- that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage) {
1564
+ that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage, params) {
1563
1565
  var queryParam = {
1564
1566
  'tableName': tableName,
1565
1567
  'xFieldName': xFieldName,
1566
1568
  'yFieldName': yFieldName
1567
1569
  };
1570
+ if(params) queryParam = MapUtils.deepClones(true, {}, queryParam, params);
1571
+
1568
1572
  var cb = function (type, data) {
1569
1573
  if (callback && type == 'queryObjectInfoCallback') {
1570
1574
  callback(data);
@@ -16,6 +16,8 @@ function setCookie(name,value){
16
16
  }
17
17
 
18
18
  function checkGlobeServerURL(url,callback){
19
+ if(!url) return;
20
+
19
21
  var cookieUrl = getCookie("globeGisUrl");
20
22
  var gisProxyList = url.split(";");
21
23
  cookieUrl && gisProxyList.push(cookieUrl);
@@ -759,10 +761,10 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
759
761
  }
760
762
 
761
763
  /* 缩放到指定中心点和级别 */
762
- that.centerAndZoom = function(x, y, level, heading, picth, duration) {
764
+ that.centerAndZoom = function(x, y, level, heading, picth, duration, opt) {
763
765
  if (scene == null)
764
766
  return;
765
- that.fireEvent("centerAndZoom", {args: [x, y, level, heading, picth, duration]}, false);
767
+ that.fireEvent("centerAndZoom", {args: [x, y, level, heading, picth, duration, opt]}, false);
766
768
  }
767
769
 
768
770
  /* 缩放到指定级别 */
@@ -395,7 +395,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
395
395
 
396
396
  }
397
397
  /* 缩放到指定中心点和级别 */
398
- that.centerAndZoom = function (x, y, level, heading, picth, duration) {
398
+ that.centerAndZoom = function (x, y, level, heading, picth, duration, opt) {
399
399
  if (scene == null)
400
400
  return;
401
401
  if (gisMap != null) {
@@ -403,7 +403,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
403
403
  }
404
404
  if (globeMap != null) {
405
405
  var lonlat = MapUtils.toLonLat(x, y);
406
- globeMap.centerAndZoom(lonlat.x, lonlat.y, level, heading, picth, duration);
406
+ globeMap.centerAndZoom(lonlat.x, lonlat.y, level, heading, picth, duration, opt);
407
407
  }
408
408
  }
409
409
  /* 缩放到指定级别 */
@@ -2281,7 +2281,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
2281
2281
  }
2282
2282
  }
2283
2283
 
2284
- that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage) {
2284
+ that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage, params) {
2285
2285
  if (!scene)
2286
2286
  return;
2287
2287
  if (gisMap)
@@ -3603,11 +3603,11 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3603
3603
  * @param {*} colors 颜色数组
3604
3604
  * @returns
3605
3605
  */
3606
- that.initRecCurrentV2Distribution = function(infoJson, colors, layerName, clickCallback){
3606
+ that.initRecCurrentV2Distribution = function(infoJson, colors, layerName, clickCallback, sizeScale){
3607
3607
  if (scene == null)
3608
3608
  return;
3609
3609
  if (gisMap != null) {
3610
- gisMap.initRecCurrentV2Distribution(infoJson, colors, layerName, clickCallback);
3610
+ gisMap.initRecCurrentV2Distribution(infoJson, colors, layerName, clickCallback, sizeScale);
3611
3611
  }
3612
3612
  }
3613
3613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.12.2",
3
+ "version": "0.12.6",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {