sbjw
2025-10-17 76dd488c026c17c0aa3dda4c401a4b7893d02214
public/example/ExampleDynamicBlcPage.md
@@ -4,7 +4,8 @@
```jsx
import React, {Component} from 'react'
import './ExampleDrawPage.css'
import {GIS} from "../iclient3d-plot-diy";
import {GIS} from "iclient3d-plot-diy";
import {Button} from "antd";
export default class ExampleDynamicDlcPage extends Component {
@@ -31,7 +32,7 @@
    componentDidMount() {
        fetch('./example/ExampleBlcPage.md')
        fetch('./example/ExampleDynamicDlcPage.md')
            .then(response => response.text())
            .then(mdText => {
                this.setState({htmlString: window.marked.parse(mdText)});
@@ -47,7 +48,7 @@
    render() {
        return (
            <div className={"example_draw_container"}>
                <h3>切换比例尺</h3>
                <h3>动态比例尺</h3>
                <div className={"map_wrapper"}>
                    <GIS refs={(e) => this.mapFunction = e}
                         plotUrl={this.state.plotUrl}
@@ -56,6 +57,10 @@
                         iconScales={[[0, 100000], [100000, 500000], [500000, 1000000], [1000000, 2000000], [2000000, 20000000]]}
                    />
                </div>
                <Button type="primary" onClick={() => this.mapFunction.mapApiService.enableTilt()}>启用旋转和倾斜
                </Button>
                <Button type="primary" onClick={() => this.mapFunction.mapApiService.disableTilt()}>禁用旋转和倾斜
                </Button>
                <div className={"code_wrapper"}>
                    <div dangerouslySetInnerHTML={{__html: this.state.htmlString}}></div>
                </div>