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 (
)
}
}