| js/function.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| js/function_1001.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
js/function.js
@@ -62,9 +62,6 @@ mars3d.global_variables.queryDataTStartGeo = getDefaultDateTimeGeo(); mars3d.global_variables.queryDataTEnd = getDefaultDateTimeEnd(); mars3d.global_variables.DefaultDateTimeStart = getDefaultDateTimeStart(); // for tmp hight light graphic and //mars3d.global_variables.tmpHighlightGraphic; //mars3d.global_variables.tmpHighlightGraphicLayer; function initLayersByUserid() { @@ -141,7 +138,9 @@ } function addGraphictoHighlightLayer() { mars3d.global_variables.tmpHighlightGraphicLayer.addGraphic(mars3d.global_variables.tmpHighlightGraphic); mars3d.global_variables.tmpHighlightGraphics.forEach((item) => { mars3d.global_variables.tmpHighlightGraphicLayer.addGraphic(item); }); } js/function_1001.js
@@ -79,7 +79,7 @@ speed: 10, //速度,建议取值范围1-100 axisY: true, }) mars3d.global_variables.tmpHighlightGraphic = event.graphic; mars3d.global_variables.tmpHighlightGraphics = event.graphics; }); map.addLayer(wmsLyer); @@ -102,8 +102,7 @@ console.log("监听layer,单击了矢量对象", event); console.log(event.graphic) var item = event.graphic?.attr; //haoutil.msg('单击了:' + item['高校名称']) mars3d.global_variables.tmpHighlightGraphic = event.graphic; mars3d.global_variables.tmpHighlightGraphics = event.graphics; });