wangrong
2021-12-17 b7fc33ac240d7f04525ce099aff478b673579927
修复移动端加载
2个文件已修改
13 ■■■■■ 已修改文件
js/function.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/function_1001.js 5 ●●●●● 补丁 | 查看 | 原始文档 | 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,13 +138,14 @@
  }
}
function addGraphictoHighlightLayer() {
  mars3d.global_variables.tmpHighlightGraphic.forEach((item) => {
  mars3d.global_variables.tmpHighlightGraphics.forEach((item) => {
  mars3d.global_variables.tmpHighlightGraphicLayer.addGraphic(item);
  });
}
function addHighlightLayerClearButton() {
  let clearButton = new mars3d.control.ToolButton({
    title: "清除高亮图层",
js/function_1001.js
@@ -79,7 +79,7 @@
      speed: 10, //速度,建议取值范围1-100
      axisY: true,
    })
    mars3d.global_variables.tmpHighlightGraphic = event.graphics;
    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;
  });