清空工具。

This commit is contained in:
tengge1 2020-02-14 22:25:39 +08:00
parent 3e87df42c1
commit 0bb37c4af4
2 changed files with 15 additions and 1 deletions

View File

@ -1005,5 +1005,6 @@
"Upload Sky Ball": "上传天空球",
"Please click the sky ball in the MapPanel.": "请点击贴图面板中的天空球。",
"Sky Ball": "天空球",
"The map you clicked is not sky ball.": "你点击的贴图不是天空球。"
"The map you clicked is not sky ball.": "你点击的贴图不是天空球。",
"Clear Tools": "清空工具"
}

View File

@ -21,6 +21,7 @@ class MeasureTools extends React.Component {
this.handleMeasureArea = this.handleMeasureArea.bind(this);
this.handleEndMeasureArea = this.handleEndMeasureArea.bind(this);
this.handleMeasureAngle = this.handleMeasureAngle.bind(this);
this.handleClearTools = this.handleClearTools.bind(this);
}
render() {
@ -46,6 +47,12 @@ class MeasureTools extends React.Component {
onClick={this.handleMeasureAngle}
/>
<ToolbarSeparator />
<IconButton
icon={'delete'}
title={_t('Clear Tools')}
onClick={this.handleClearTools}
/>
<ToolbarSeparator />
</>;
}
@ -94,6 +101,12 @@ class MeasureTools extends React.Component {
handleMeasureAngle() {
}
// --------------------------- ---------------------------------------
handleClearTools() {
}
}
export default MeasureTools;