egovamap 0.15.3 → 0.15.7

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.
@@ -348,6 +348,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
348
348
  var subUniqueCode = options.subUniqueCode;
349
349
  let queryCallback = function (featureInfos) {
350
350
  var features = featureInfos[queryParam.phyLayerIDs];
351
+ if (!features || !features.length) return;
351
352
  var symbolUrl = "";
352
353
  if (subUniqueCode.indexOf("http") > -1) {
353
354
  symbolUrl = subUniqueCode;
@@ -377,7 +378,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
377
378
  this.drawOtherParts = function (options, data) {
378
379
  var self = this;
379
380
  const geomType = options.geomType;
380
- let queryParam = options.queryParam;
381
+ let queryParam = options.queryParam || {};
381
382
  function showParts(data) {
382
383
 
383
384
  }
@@ -391,17 +392,17 @@ var egovaBI = function(globeMap, gisMap, mapType){
391
392
  const keyValue = null;
392
393
  const clearMap = queryParam.clearMap || true;
393
394
  let inStyle = queryParam.style || {
394
- color: "lightblue"
395
+ color: "blue"
395
396
  };
396
397
  let inHStyle = queryParam.hStyle || {
397
- color: "lightblue"
398
+ color: "blue"
398
399
  };
399
400
  let style = null, hStyle = null;
400
401
  if (geomType == 1) {
401
402
  } else if (geomType == 2) {
402
403
  style = {
403
404
  type: "simple-line", // autocasts as new SimpleLineSymbol()
404
- color: inStyle.color || "lightblue",
405
+ color: inStyle.color || "blue",
405
406
  width: inStyle.width || "2px",
406
407
  style: inStyle.style || "solid",
407
408
  cap: inStyle.cap || "round",
@@ -409,7 +410,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
409
410
  };
410
411
  hStyle = {
411
412
  type: "simple-line", // autocasts as new SimpleLineSymbol()
412
- color: inHStyle.color || "lightblue",
413
+ color: inHStyle.color || "red",
413
414
  width: inHStyle.width || inStyle.width || "2px",
414
415
  style: inHStyle.style || inStyle.style || "solid",
415
416
  cap: inHStyle.cap || inStyle.cap || "round",
@@ -421,9 +422,9 @@ var egovaBI = function(globeMap, gisMap, mapType){
421
422
  color: inStyle.color || [51, 51, 204, 0.9],
422
423
  style: inStyle.style || "solid",
423
424
  outline: { // autocasts as new SimpleLineSymbol()
424
- color: inStyle.outlineColor || "lightblue",
425
+ color: inStyle.outlineColor || "blue",
425
426
  width: inStyle.outlineWidth || "1px",
426
- style: inStyle.outStyle || "solid",
427
+ style: inStyle.outlineStyle || "solid",
427
428
  cap: inStyle.outlineCap || "round",
428
429
  join: inStyle.outlineJoin || "round",
429
430
  }
@@ -433,7 +434,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
433
434
  color: inHStyle.color || [51, 51, 204, 0.9],
434
435
  style: inHStyle.style || inStyle.style || "solid",
435
436
  outline: { // autocasts as new SimpleLineSymbol()
436
- color: inHStyle.outlineColor || "lightblue",
437
+ color: inHStyle.outlineColor || "red",
437
438
  width: inHStyle.outlineWidth || inStyle.outlineWidth || "1px",
438
439
  style: inHStyle.outlineStyle || inStyle.outlineStyle || "solid",
439
440
  cap: inHStyle.outlineCap || inStyle.outlineCap || "round",
@@ -448,10 +449,12 @@ var egovaBI = function(globeMap, gisMap, mapType){
448
449
  const geometry = null;
449
450
  const where = queryParam.where || "1=1";
450
451
  const opts = {
451
- layerId: layerName
452
+ layerId: layerName,
453
+ mouseOverCallback: queryParam.mouseOverCallback
452
454
  };
453
455
 
454
- let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts];
456
+ let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts, null, null, null, null, null, null, queryParam.clickCallback];
457
+ //let param = [layerID, keyField, keyValue, clearMap, style, hStyle, bZoom, randomColor, labelField, labelstyle, geometry, where, null, null, opts, null, null, null, null, queryParam.callback];
455
458
  if (globeMap) {
456
459
  gisMap.locateFeatureByIDs(...param);
457
460
  } else if (gisMap) {
@@ -581,6 +581,13 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
581
581
  }
582
582
  scene.fire((msgPrefix + ":getBuffer"), {args: args}, parentScene, true);
583
583
  }
584
+ /* 获取多点的缓冲区 */
585
+ that.getMultiPointBuffer = function(points, radius){
586
+ if (scene == null)
587
+ return;
588
+ scene.fire((msgPrefix + ":getMultiPointBuffer"), {args: args}, parentScene, true);
589
+
590
+ }
584
591
  /* 显示监督员责任网格 */
585
592
  that.showPatrolDutygridCells = function(infoJson, zoom, clickCallback) {
586
593
  if (scene == null)
@@ -751,6 +751,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
751
751
  var cb = function (type, data) {
752
752
  if (callback) {
753
753
  if (type == 'locateFeatureByIDsCallback') callback(data);
754
+ else if (type == 'locateFeatureByIDsMouseOver') options && options.mouseOverCallback(data);
754
755
  } else {
755
756
  that.fireCallback(type, data);
756
757
  }
@@ -1793,7 +1793,17 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
1793
1793
  }
1794
1794
 
1795
1795
  }
1796
-
1796
+ /**
1797
+ * @param {*} points 点位坐标list,[[x,y],...]
1798
+ * @param {*} radius 缓冲距离,单位为米
1799
+ * @returns
1800
+ */
1801
+ that.getMultiPointBuffer = function(points, radius){
1802
+ if (scene == null)
1803
+ return;
1804
+ if (gisMap != null)
1805
+ gismap.getMultiPointBuffer(this, arguments);
1806
+ }
1797
1807
 
1798
1808
  /* 显示监督员责任网格 */
1799
1809
  that.showPatrolDutygridCells = function (infoJson, zoom, clickCallback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.15.3",
3
+ "version": "0.15.7",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {