top panels code cleanup

This commit is contained in:
muerwre 2019-02-06 17:34:45 +07:00
parent eae5a893fc
commit 3e16ad4e37
3 changed files with 44 additions and 41 deletions

View file

@ -10,10 +10,7 @@ export class UserLocation extends React.Component {
const element = document.createElement('div');
this.icon = new DomMarker({
element,
className: 'location-marker',
});
this.icon = new DomMarker({ element, className: 'location-marker' });
this.mark = null;
this.map = editor.map.map;
@ -64,8 +61,10 @@ export class UserLocation extends React.Component {
render() {
return (
<div onClick={this.centerMapOnLocation}>
<Icon icon="icon-locate" size={30} />
<div className="status-bar square pointer pointer">
<div onClick={this.centerMapOnLocation}>
<Icon icon="icon-locate" size={30} />
</div>
</div>
);
}