sbjw
18 hours ago 6f475ec20efbbb91d5d3d012284eeaa5b0a0bab0
public/example/ExampleFlyPage.md
@@ -4,7 +4,7 @@
```jsx
import React, {Component} from 'react'
import './ExampleDrawPage.css'
import {GIS, Bp} from "../iclient3d-plot-diy";
import {GIS, Bp} from "iclient3d-plot-diy";
import {interval, take} from "rxjs";
const Cesium = window['Cesium'];
@@ -81,19 +81,24 @@
            "code": "ccccc",
            "bzlx": "simple",
            "jbwb": "R:00017",
            "xbwb": "R:00017312312\n123123",
            "type": "2010",
            "useModify": false,
            "lon": arr[0].lon,
            "lat": arr[0].lat,
            "height": arr[0].height || 0,
            clampToGround: false,
            xz: true,
            "height": arr[0].height,
            points: []
        }
        this.mapFunction.mapApiService.showDrawDatas([option]);
        interval(300).pipe(take(120)).subscribe(number => {
            this.mapFunction.mapApiService.updateDraw("ccccc", {
                clampToGround: false,
                lon: arr[number].lon,
                lat: arr[number].lat,
                height: arr[number].height,
                points: arr.slice(0, number)
            });
        });