Three城市引擎地图插件Geo-3d

一、简介

基于Three开发,为Three 3D场景提供GIS能力和城市底座渲染能力。支持Web墨卡托、WGS84、GCJ02等坐标系,支持坐标转换,支持影像、地形、geojson建筑、道路,植被等渲染。支持自定义主题。

二、效果

三、代码

javascript 复制代码
//插件初始化
const centerGeo = new Vector3(116.2172594, 39.9421299, 0);
const imageryLayers = new Geo3D.ImageryLayers()
const tdtImageryLayer = new Geo3D.TDTImageryLayer({
    token: 'b832b9764939cbbasdf0919148c548b669ba',
})
const tdtImageryLayer2 = new Geo3D.TDTImageryLayer({
    token: 'b832b9764939cbb0asdf919148c548b669ba',
    style: 'cva_w',
})
imageryLayers.add(tdtImageryLayer);
imageryLayers.add(tdtImageryLayer2);
const map = new Geo3D.Map({
    threeModule: {
        scene, camera, renderer, control
    },
    center: centerGeo,
    imageryLayers: imageryLayers,
    terrainLayer: new Geo3D.TileSource({
        dataType: "terrain-rgb",
        maxLevel: 14,
        url:'http://192.168.11.164:9999/{z}/{x}/{y}.png'
    })
})
相关推荐
Huanzhi_Lin11 小时前
图形渲染管线流程笔记
笔记·图形渲染·shader·glsl
梵尔纳多20 小时前
初识 OpenGL
c++·图形渲染
BoBoZz191 天前
MotionBlur 演示简单运动模糊
python·vtk·图形渲染·图形处理
BoBoZz191 天前
GradientBackground 比较不同类型的背景渐变着色模式与坐标转换
python·vtk·图形渲染·图形处理
BoBoZz192 天前
FlatVersusGouraud 对比平面着色和高洛德着色
python·vtk·图形渲染·图形处理
small-pudding3 天前
Cocos Creator 自定义 Effect:用 Shader 程序化生成可调条纹背景
图形渲染
BoBoZz193 天前
ColorEdges 动态有向图的动态渲染
python·vtk·图形渲染·图形处理
BoBoZz193 天前
AmbientSpheres 调整材质的环境光系数来控制3D物体的着色效果
python·vtk·图形渲染·图形处理
BoBoZz194 天前
ResetCameraOrientation 保存、修改和恢复摄像机的精确视角参数
python·vtk·图形渲染·图形处理
BoBoZz194 天前
MultipleRenderWindows 创建多个渲染窗口
python·vtk·图形渲染·图形处理