Git Product home page Git Product logo

mars3d-vue-example's Issues

hasEventParent方法注释错误

hasEventParent方法注释中(官网api文档和mars3d.d.ts中的方法注释)写的返回值是“BaseClass”, 实测是 boolean,也应该是boolean

启动报错 [ERROR] Could not resolve "mars3d-cesium"

[ERROR] Could not resolve "mars3d-cesium"

node_modules/mars3d/dist/mars3d.js:10:108:
  10 │ ...rts, (window.Cesium || require('mars3d-cesium')), (window.turf || require('@t...
     ╵                                   ~~~~~~~~~~~~~~~

You can mark the path "mars3d-cesium" as external to exclude it from the bundle, which will
remove this error. You can also surround this "require" call with a try/catch block to
handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@turf/turf"

node_modules/mars3d/dist/mars3d.js:10:151:
  10 │ ...w.Cesium || require('mars3d-cesium')), (window.turf || require('@turf/turf'))) : 
     ╵                                                                   ~~~~~~~~~~~~      

You can mark the path "@turf/turf" as external to exclude it from the bundle, which will
remove this error. You can also surround this "require" call with a try/catch block to
handle this failure at run-time instead of bundle-time.

node版本14.18.0 尝试切换到18.15.0 也还是报同样的错误

二三维切换时 矢量图形显示位置有差别

版本:线上最新example页面上做测试
示例:http://mars3d.cn/editor-vue.html?id=layer-graphic/draw/draw-model
操作:进入示例页面后,在图层中点选 石化工厂; 然后点标绘,scale=0.1
问题:如图,切换二三维后, 飞机的位置有位移,不一致; 但是对比,二三维时 保存的geojson文件中的 飞机的坐标, 两者的坐标完全一模一样;就是页面显示的视觉上有差异;

三维截图:
飞机三维

二维截图:
飞机二维

timeline时间线 时间标与时钟currentTime对不上

版本: 3.5.0
问题:如下两种情况:
第1种情况如下图表示 时钟暂停状态,时钟的时间与时间线上的时间标能对的上; 正常
1688715663398_ACDCD192-20CA-47b5-A59F-BC7E3D1C5381

第2种情况如下图表示 时钟启动状态,时钟的时间与时间线上的时间标对不上(currentTime为9点多,时间线上的时间线还没到9点); 异常
1688715695967_CA5486EE-3C37-4da1-B39B-C8EA0946A313

配置代码

const mapOptions = {
  scene: {
    clock: {
      startTime: "2022-12-23 07:30:00",
      stopTime: "2022-12-23 10:30:00",
      currentTime: "2022-12-23 09:00:00",
      multiplier: 1
    }
  },
  control: {
    clockAnimate: true,
    timeline: true
  }
}

const mapLoaded = (mapInstance: mars3d.Map) => {
  map = mapInstance

  if (map.clock && map.controls.timeline) {
    const startTime = map.clock.startTime.clone()
    const stopTime = map.clock.stopTime.clone()
    const currentTime = map.clock.currentTime.clone()

    map.controls.timeline.zoomTo(startTime, stopTime)
  }
}

fixedRoute的mars3d.EventType.endItem事件有问题

版本: 3.5.0
问题描述:

  1. 定义一个有3个点的fixedRoute任务,定义为第0点(起点),第1点,第2点(终点)
  2. 使用如下代码检测漫游节点
fixedRoute.on(mars3d.EventType.endItem, function (event) {
    console.log("已漫游过点:" + event.index, event)
  })
  1. 问题
  • 任务start后,count为3;
  • 第0个点(起点)启动后接收事件打印"已漫游过点0",点坐标为第0点坐标,正确
  • 几毫秒后紧接着打印"已漫游过点1",事件中点坐标为第1点坐标,事实上刚刚启动,远没有到达第1点, 错误
  • 到达第1个点后,打印”已漫游过点2“,事件中点坐标为第2点(终点)坐标,事实上刚到达第1点, 错误
  • 到达第2个点(终点后),没有接收到endItem事件

fixedRoute状态异常

版本: 3.5.0
问题:测试了两种情况,第1种正常, 第2种异常

  1. fixedRoute先start, 再stop, 此时 fixedRoute.isStart=false, isPause=false, 正常
  2. 异常情况: fixedRoute先start, 再pause, 再stop, 此时 fixedRoute.isStart=false, isPause=True, 异常

期望:上第2种情况,stop后, isPause=False才对

配置文件导出

不知是否可以提供配置文件config.json导出的功能,是否有获取场景基本参数、全部底图、全部图层树的方法呢

视频贴物3D投射Mac笔记本显示异常

哈喽,你好,我发现视频3D贴物投射,在Mac笔记本视频会被模型(3D tiles)给挡住,没有起到贴物效果。但是在Windows本是正常的,请问一下有什么好的方式可以解决吗?谢谢了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.