From 57125474b550995d1c3f87b69ad555281f92ab6a Mon Sep 17 00:00:00 2001 From: Gjum Date: Fri, 26 May 2017 04:33:46 +0200 Subject: [PATCH] set url from export button instead of on moveEnd --- js/Main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/Main.js b/js/Main.js index d06449c..67771f7 100644 --- a/js/Main.js +++ b/js/Main.js @@ -11,6 +11,7 @@ import IconArrFwd from 'material-ui/svg-icons/navigation/arrow-forward'; import IconClaim from 'material-ui/svg-icons/social/public'; import IconClose from 'material-ui/svg-icons/navigation/close'; import IconHelp from 'material-ui/svg-icons/action/help'; +import IconLink from 'material-ui/svg-icons/content/link'; import IconMenu from 'material-ui/svg-icons/navigation/menu'; import IconPlace from 'material-ui/svg-icons/maps/place'; import ImageTune from 'material-ui/svg-icons/image/tune'; @@ -172,6 +173,12 @@ export class Main extends Component { /> + } + onTouchTap={() => history.replaceState({}, document.title, viewToHash(this.map, this.state, this.viewDefaults))} + /> + About history.replaceState({}, document.title, viewToHash(e.target, this.state, this.viewDefaults))} onmousemove={e => this.coordsDisplay && this.coordsDisplay.setCursor(e.latlng)} >