1.0.27 • Published 3 years ago

datav-vangogh v1.0.27

Weekly downloads
288
License
-
Repository
-
Last release
3 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

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.27

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

0.0.115

4 years ago

1.0.16

3 years ago

0.0.114

4 years ago

1.0.9

4 years ago

0.0.113

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

0.0.112

4 years ago

0.0.111

4 years ago

0.0.110

4 years ago

0.0.109

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

0.0.108

4 years ago

0.0.107

4 years ago

1.0.3

4 years ago

0.0.106

4 years ago

0.0.105

4 years ago

0.0.104

4 years ago

0.0.103

4 years ago

0.0.102

4 years ago

0.0.101

4 years ago

0.0.100

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.97

4 years ago

0.0.98

4 years ago

0.0.99

4 years ago

1.0.0

4 years ago

0.0.96

4 years ago

0.0.95

4 years ago

0.0.94

4 years ago

0.0.93

4 years ago

0.0.91

4 years ago

0.0.92

4 years ago

0.0.89

4 years ago

0.0.90

4 years ago

0.0.88

4 years ago

0.0.87

5 years ago

0.0.86

5 years ago

0.0.85

5 years ago

0.0.84

5 years ago

0.0.83

5 years ago

0.0.82

5 years ago

0.0.81

5 years ago

0.0.80

5 years ago

0.0.79

5 years ago

0.0.78

5 years ago

0.0.77

5 years ago

0.0.76

5 years ago

0.0.75

5 years ago

0.0.74

5 years ago

0.0.73

5 years ago

0.0.72

5 years ago

0.0.70

5 years ago

0.0.71

5 years ago

0.0.69

5 years ago

0.0.68

5 years ago

0.0.67

5 years ago

0.0.66

5 years ago

0.0.63

5 years ago

0.0.64

5 years ago

0.0.65

5 years ago

0.0.62

5 years ago

0.0.61

5 years ago

0.0.60

5 years ago

0.0.59

5 years ago

0.0.56

5 years ago

0.0.57

5 years ago

0.0.58

5 years ago

0.0.55

5 years ago

0.0.54

5 years ago

0.0.53

5 years ago

0.0.52

6 years ago

0.0.51

6 years ago

0.0.50

6 years ago

0.0.49

6 years ago

0.0.48

6 years ago

0.0.47

6 years ago

0.0.46

6 years ago

0.0.45

6 years ago

0.0.44

6 years ago

0.0.43

6 years ago

0.0.42

6 years ago

0.0.41

6 years ago

0.0.40

6 years ago

0.0.39

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago