1.0.27 • Published 2 years ago

datav-vangogh v1.0.27

Weekly downloads
288
License
-
Repository
-
Last release
2 years ago
流程
  1. 创建一个 Viewer
    // 笛卡尔场景
    const viewer = new VOGO.Viewer(container, options);
    
    // 椭球投影
    const globeViewer = new VOGO.GlobeViewer(container, options);
    
    如:
        const atmosphere = new VOGO.Atmosphere(xxxx);
        const tileSet = new VOGO.TileSet();
        tileSet.url = ''
        tileSet.visible = false;
    
        new VOGO.GlobeViewer(container, {
            Atmosphere: atmosphere
            tile: tileSet
        })
    
    // 平面投影
    const planarViewer = new VOGO.PlanarViewer(container, options);

Viewer 默认属性

  • controls: orbit | globe | planar

  • isAdvancedRender: false | true

  • isTileRendered : globe & planar true | viewer false

  • engine: baisc renderer class

  • projection function

  • scene | camera | renderLists

Viewer 默认方法

  • flyTo(coord | object)
  • zoomTo ?
  1. options 选项
    • renderOptions
    • default controls options
    • renderMode
    • 大气
    • 后期效果
  2. Controls
    • orbitControls: cameraPositon | cameraTarget
    • globeControls : cameraPosition(lng, lat, alt) | cameraRotation (heading, tilt)
    • planarControls : cameraPosition(lng, lat, alt) | cameraRotation (heading, tilt)
需求
  1. 区分当前渲染状态,是否静帧,是否区分渲染队列
  2. camera移动时 是否需要刷新
  3. 定制好不同视图,同时不是定制参数 balance
  4. 良好的API
examples
  1. 创建 球体视图

    // 1. 创建瓦片
    const tileLayer = new VOGO.TileLayer(tileConfig);
    // 2. 创建大气
    const atmosphere = new VOGO.Atmosphere(atmosphereConfig);
    // 3. 创建后期
    const postprocessing = new VOGO.PostProcessing(ppConfig);
    // 4. 创建椭球视图
    const globeViewer = new VOGO.GlobeViewer(container, {
        cameraConfig,
        basicConfig
    })
    
    // 添加要素
    globeViewer.addLayer(tileLayer);
    globeViewer.addLayer(atmosphere);
    globeViewer.addLayer(postprocessing);
    
    globeViewer.addLayer(image1);
    globeViewer.addLayer(image2);
    globeViewer.addLayer(terrian);
    globeViewer.addLayer(vectorTile)
    
    // 5. 子组件 如何添加 ?
    const com = new DataV.Subcom(container, options);
    com.layer.renderQueue = VOGO.Transprent;
    viewer.addLayer(com.layer);
    
    // 6. 移除层、子组件
    viewer.removeLayer(com.layer);
    
    // 7. layer 生命周期
    layer.updateOptions(opts);
    layer.setData(data);
    layer.destroy();
TODO
  1. 矢量瓦片
  2. 基础要素的绘制
  3. 交互及提示框
1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.27

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

0.0.115

2 years ago

1.0.16

2 years ago

0.0.114

2 years ago

1.0.9

2 years ago

0.0.113

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

0.0.112

3 years ago

0.0.111

3 years ago

0.0.110

3 years ago

0.0.109

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

0.0.108

3 years ago

0.0.107

3 years ago

1.0.3

3 years ago

0.0.106

3 years ago

0.0.105

3 years ago

0.0.104

3 years ago

0.0.103

3 years ago

0.0.102

3 years ago

0.0.101

3 years ago

0.0.100

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.97

3 years ago

0.0.98

3 years ago

0.0.99

3 years ago

1.0.0

3 years ago

0.0.96

3 years ago

0.0.95

3 years ago

0.0.94

3 years ago

0.0.93

3 years ago

0.0.91

3 years ago

0.0.92

3 years ago

0.0.89

3 years ago

0.0.90

3 years ago

0.0.88

3 years ago

0.0.87

3 years ago

0.0.86

4 years ago

0.0.85

4 years ago

0.0.84

4 years ago

0.0.83

4 years ago

0.0.82

4 years ago

0.0.81

4 years ago

0.0.80

4 years ago

0.0.79

4 years ago

0.0.78

4 years ago

0.0.77

4 years ago

0.0.76

4 years ago

0.0.75

4 years ago

0.0.74

4 years ago

0.0.73

4 years ago

0.0.72

4 years ago

0.0.70

4 years ago

0.0.71

4 years ago

0.0.69

4 years ago

0.0.68

4 years ago

0.0.67

4 years ago

0.0.66

4 years ago

0.0.63

4 years ago

0.0.64

4 years ago

0.0.65

4 years ago

0.0.62

4 years ago

0.0.61

4 years ago

0.0.60

4 years ago

0.0.59

4 years ago

0.0.56

4 years ago

0.0.57

4 years ago

0.0.58

4 years ago

0.0.55

4 years ago

0.0.54

4 years ago

0.0.53

4 years ago

0.0.52

4 years ago

0.0.51

4 years ago

0.0.50

4 years ago

0.0.49

4 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.43

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago