mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 11:36:40 +07:00
top panels code cleanup
This commit is contained in:
parent
eae5a893fc
commit
3e16ad4e37
3 changed files with 44 additions and 41 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue