marsgis / mars3d-vue-example Goto Github PK
View Code? Open in Web Editor NEW功能示例,Vue3技术栈开发
Home Page: http://mars3d.cn/example.html
License: Apache License 2.0
功能示例,Vue3技术栈开发
Home Page: http://mars3d.cn/example.html
License: Apache License 2.0
示例: http://mars3d.cn/editor-vue.html?id=graphic/divGraphic/basis
右侧Mars-dialog框中,按control键, f12报错:“e.lastError: The message port closed before a response was received.”
版本: 3.5.0
问题:如下两种情况:
第1种情况如下图表示 时钟暂停状态,时钟的时间与时间线上的时间标能对的上; 正常
第2种情况如下图表示 时钟启动状态,时钟的时间与时间线上的时间标对不上(currentTime为9点多,时间线上的时间线还没到9点); 异常
配置代码:
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)
}
}
版本:线上最新example页面上做测试
示例:http://mars3d.cn/editor-vue.html?id=layer-graphic/draw/draw-model
操作:进入示例页面后,在图层中点选 石化工厂; 然后点标绘,scale=0.1
问题:如图,切换二三维后, 飞机的位置有位移,不一致; 但是对比,二三维时 保存的geojson文件中的 飞机的坐标, 两者的坐标完全一模一样;就是页面显示的视觉上有差异;
哈喽,你好,我发现视频3D贴物投射,在Mac笔记本视频会被模型(3D tiles)给挡住,没有起到贴物效果。但是在Windows本是正常的,请问一下有什么好的方式可以解决吗?谢谢了
不知是否可以提供配置文件config.json导出的功能,是否有获取场景基本参数、全部底图、全部图层树的方法呢
版本: 3.5.0
问题描述:
fixedRoute.on(mars3d.EventType.endItem, function (event) {
console.log("已漫游过点:" + event.index, event)
})
[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 也还是报同样的错误
我在官方的案例中 官方示例
createEchartsLayer函数中 添加了
echartsLayer.on('click', () => {
console.log(111)
})
但是怎么都不会触发
版本: 3.5.0
问题:测试了两种情况,第1种正常, 第2种异常
期望:上第2种情况,stop后, isPause=False才对
hasEventParent方法注释中(官网api文档和mars3d.d.ts中的方法注释)写的返回值是“BaseClass”, 实测是 boolean,也应该是boolean
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.