import React, {Component, PureComponent} from 'react' import './CommonExample.css' import {GIS} from "../iclient3d-plot-diy"; ; import './ExampleLayerPage.css' import {Button} from "antd"; export default class ExampleToolsPage extends PureComponent { constructor(props) { super(props); this.state = { htmlString: '

正在加载中...

' }; } componentDidMount() { this.mapFunction.hideToolBar(); fetch('./example/ExampleToolsPage.md') .then(response => response.text()) .then(mdText => { this.setState({htmlString: window.marked.parse(mdText)}); }); } addDemLayer() { this.mapFunction.updateDemLayer(this.state.terrainUrl, true); } addDefaultLayer() { this.mapFunction.showDefaultLayer(); } render() { return (

工具栏控制

{ this.mapFunction = e }} mapRef={this} addressSearchUrl="http://192.168.0.251:8090/iserver/services/addressmatch-Address/restjsr/v1/address/geocoding" terrainUrl="http://192.168.0.251:8090/iserver/services/map-world/rest/maps/World" terrainUrlIsSct={true} showDefaultLayer={false} global={[100, 30.5, 101, 31.5]} // baseImageUrl="https://www.supermapol.com/realspace/services/map-scyx/rest/maps/China_DARK" />

地形服务地址: this.setState({terrainUrl: v.target.value})}/>
视角工具:
常用工具: {/**/} {/**/}
分析功能:
) } }