egovamap 0.15.15 → 0.15.16

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.
@@ -475,7 +475,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
475
475
  parentScene);
476
476
  }
477
477
  /* 显示案件分布 */
478
- that.showRecListDistribution = function(infoJson, zoom, clickCallback, labelInfo,isShowLegend) {
478
+ that.showRecListDistribution = function(infoJson, zoom, clickCallback, labelInfo,isShowLegend, symbolUrl, options) {
479
479
  if (scene == null || infoJson.length == 0)
480
480
  return;
481
481
  //如果xy坐标没有值不处理
@@ -493,7 +493,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
493
493
  clickCallback(evt.args);
494
494
  });
495
495
  }
496
- scene.fire((msgPrefix + ":showRecListDistribution"), { args : [ infoJson, zoom, labelInfo,isShowLegend ] }, parentScene, false);
496
+ scene.fire((msgPrefix + ":showRecListDistribution"), { args : [ infoJson, zoom, labelInfo,isShowLegend, symbolUrl, options] }, parentScene, false);
497
497
 
498
498
  //如果启用了实景功能,同时进行实景定位
499
499
  if(mmsMap && infoJson.length == 1) {
@@ -516,32 +516,31 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
516
516
  // 移除监听
517
517
  var clickBackName = "showMultiObjectCurrentPositionClick";
518
518
  var mouseOverBackName = "showMultiObjectCurrentPositionMouseover";
519
- if(options&&options.callbacksuffix){
519
+ var mouseOutBackName = "showMultiObjectCurrentPositionMouseout";
520
+ if (options&&options.callbacksuffix) {
520
521
  clickBackName += options.callbacksuffix;
521
522
  mouseOverBackName += options.callbacksuffix;
523
+ mouseOutBackName += options.callbacksuffix;
522
524
  }
523
525
  that.removeEventBind(clickBackName);
524
526
  that.removeEventBind(mouseOverBackName);
525
- var args =[];
526
- var FuncList = [];
527
- for(var i = 0;i<arguments.length;i++){
528
- if (arguments[i] instanceof Function) {
529
- FuncList.push(arguments[i]);
530
- }else{
531
- args.push(arguments[i]);
532
- }
533
- }
534
- if (FuncList[0] instanceof Function) {
527
+ that.removeEventBind(mouseOutBackName);
528
+ if (clickCallback instanceof Function) {
535
529
  that.bindEvent(clickBackName, function(evt) {
536
- FuncList[0](evt.args);
530
+ clickCallback(evt.args);
537
531
  });
538
532
  }
539
- if (FuncList[1] instanceof Function) {
533
+ if (mouseOverCallBack instanceof Function) {
540
534
  that.bindEvent(mouseOverBackName, function(evt) {
541
- FuncList[1](evt.args);
535
+ mouseOverCallBack(evt.args);
536
+ });
537
+ }
538
+ if(mouseOutCallback instanceof Function){
539
+ that.bindEvent(mouseOutBackName, function(evt) {
540
+ mouseOutCallback(evt.args);
542
541
  });
543
542
  }
544
- scene.fire((msgPrefix + ":showMultiObjectCurrentPosition"), {args: args}, parentScene, false);
543
+ scene.fire((msgPrefix + ":showMultiObjectCurrentPosition"), {args: [jsonInfo, zoom, bClear, hStyleID, infoStyle, bCanvas, tagName, clusterOption, hasHover, layerID, options]}, parentScene, false);
545
544
  }
546
545
  /* 显示监督员 */
547
546
  that.showPatrolCurrentPosition = function (jsonInfo, zoom, bClear, hStyleID, clickCallback) {
@@ -303,7 +303,6 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
303
303
  var mainScript = document.createElement('script');
304
304
  mainScript.setAttribute('type', 'text/javascript');
305
305
  var distOrSource = getLocalStorageItem('gisDebug') ? 'source' : 'dist';
306
- distOrSource = 'source';
307
306
  var cssUrl = gisServerURL + '/library/egovaviewer/build/' + distOrSource + '/index.css';
308
307
  var mainLink = document.createElement('link');
309
308
  // mainLink.setAttribute('name','egoavagisviewer_' + uniqueID);
@@ -759,7 +758,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
759
758
  that.callMap('locateFeatureByIDs', layerID, keyValue, keyFiled, clearMap, style, hStyle, bZoom, randomColor, labelfield, labelstyle, geometry, where, renderCanvas, singleSelected, options, extendProperty, layerTag, outFieldStr, animiteStep, index, clipGeom, cb, popupTemplate);
760
759
  }
761
760
  /* 显示案件分布 */
762
- that.showRecListDistribution = function (infoJson, zoom, clickCallback, labelInfo, isShowLegend, symbolUrl) {
761
+ that.showRecListDistribution = function (infoJson, zoom, clickCallback, labelInfo, isShowLegend, symbolUrl, options) {
763
762
  if (scene == null || infoJson.length == 0)
764
763
  return;
765
764
  //如果xy坐标没有值不处理
@@ -769,23 +768,12 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
769
768
  return;
770
769
  }
771
770
  }
772
- /*
773
- // 移除监听
774
- that.removeEventBind("showRecListDistributionCallback");
775
-
776
- if (clickCallback != undefined) {
777
- that.bindEvent("showRecListDistributionCallback", function (evt) {
778
- clickCallback(evt.args);
779
- });
780
- }
781
- scene.fire((msgPrefix + ":showRecListDistribution"), { args: [infoJson, zoom, labelInfo, isShowLegend] }, parentScene, false);
782
- */
783
-
771
+
784
772
  var cb = function (type, data) {
785
773
  if (clickCallback && type == 'showRecListDistributionCallback')
786
774
  clickCallback(data);
787
775
  };
788
- that.callMap('showRecListDistribution', infoJson, zoom, labelInfo, isShowLegend, symbolUrl, cb);
776
+ that.callMap('showRecListDistribution', infoJson, zoom, labelInfo, isShowLegend, symbolUrl, cb, options);
789
777
  //如果启用了实景功能,同时进行实景定位
790
778
  if (mmsMap && infoJson.length == 1) {
791
779
  var recInfo = infoJson[0];
@@ -1638,7 +1638,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
1638
1638
  }
1639
1639
  };
1640
1640
  /* 显示案件分布 */
1641
- that.showRecListDistribution = function (infoJson, zoom, clickCallback, labelInfo, isShowLegend) {
1641
+ that.showRecListDistribution = function (infoJson, zoom, clickCallback, labelInfo, isShowLegend, symbolUrl, options) {
1642
1642
  if (scene == null)
1643
1643
  return;
1644
1644
  if (gisMap != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.15",
3
+ "version": "0.15.16",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {