egovamap 0.12.2 → 0.12.3

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.
@@ -1077,12 +1077,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
1077
1077
  }
1078
1078
 
1079
1079
  /**查询表信息*/
1080
- that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage) {
1080
+ that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage, params) {
1081
1081
  var queryParam = {
1082
1082
  'tableName': tableName,
1083
1083
  'xFieldName': xFieldName,
1084
1084
  'yFieldName': yFieldName
1085
1085
  };
1086
+ if(params) queryParam = MapUtils.deepClones(true, {}, queryParam, params);
1087
+
1086
1088
  that.removeEventBind("queryObjectInfoCallback");
1087
1089
  that.bindEvent("queryObjectInfoCallback", callback);
1088
1090
  scene.fire(msgPrefix + ':queryObjectInfo', {args: [JSON.stringify(geoShapes), JSON.stringify(queryParam), usePage, currentPage, numPerPage]}, parentScene, false);
@@ -829,7 +829,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
829
829
  }
830
830
 
831
831
  /* 初始化实时案件分布 */
832
- that.initRecCurrentV2Distribution = function (infoJson, colors, layerName, clickCallback) {
832
+ that.initRecCurrentV2Distribution = function (infoJson, colors, layerName, clickCallback, sizeScale) {
833
833
  if (scene == null || infoJson.length == 0)
834
834
  return;
835
835
  var cb = function (type, data) {
@@ -837,7 +837,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
837
837
  clickCallback(data);
838
838
  }
839
839
  };
840
- that.callMap('initRecCurrentV2Distribution', infoJson, colors, layerName, cb);
840
+ that.callMap('initRecCurrentV2Distribution', infoJson, colors, layerName, cb, sizeScale);
841
841
  }
842
842
  /* 显示实时案件分布 */
843
843
  that.showRecCurrentV2Distribution = function (infoJson, zoom, highLight) {
@@ -1559,12 +1559,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
1559
1559
  }
1560
1560
 
1561
1561
  /**查询表信息*/
1562
- that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage) {
1562
+ that.queryObjectInfo = function (geoShapes, tableName, xFieldName, yFieldName, callback, usePage, currentPage, numPerPage, params) {
1563
1563
  var queryParam = {
1564
1564
  'tableName': tableName,
1565
1565
  'xFieldName': xFieldName,
1566
1566
  'yFieldName': yFieldName
1567
1567
  };
1568
+ if(params) queryParam = MapUtils.deepClones(true, {}, queryParam, params);
1569
+
1568
1570
  var cb = function (type, data) {
1569
1571
  if (callback && type == 'queryObjectInfoCallback') {
1570
1572
  callback(data);
@@ -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.3",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {