From 4395e3a004ca0d6f18881e32792c3385228f6ca7 Mon Sep 17 00:00:00 2001
From: sbjw <sbjw.happy@163.com>
Date: Thu, 28 Aug 2025 06:23:09 +0000
Subject: [PATCH] ignore
---
src/example/ExampleDynamicBlcPage.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/example/ExampleDynamicBlcPage.js b/src/example/ExampleDynamicBlcPage.js
index d6be8a8..5097d00 100644
--- a/src/example/ExampleDynamicBlcPage.js
+++ b/src/example/ExampleDynamicBlcPage.js
@@ -1,6 +1,7 @@
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 {
@@ -27,7 +28,7 @@
componentDidMount() {
- fetch('./example/ExampleBlcPage.md')
+ fetch('./example/ExampleDynamicDlcPage.md')
.then(response => response.text())
.then(mdText => {
this.setState({htmlString: window.marked.parse(mdText)});
@@ -52,6 +53,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>
--
Gitblit v1.9.3