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

正在加载中...

' }; } componentDidMount() { this.mapFunction.hideToolBar(); fetch('./example/ExampleHideToolBarPage.md') .then(response => response.text()) .then(mdText => { this.setState({htmlString: window.marked.parse(mdText)}); }); } render() { return (

工具栏控制

{ this.mapFunction = e }} mapRef={this}/>
) } }