mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
changed user location marker
This commit is contained in:
parent
d39ec1588c
commit
16d04bd6bb
3 changed files with 10 additions and 39 deletions
|
@ -16,7 +16,6 @@ export class UserLocation extends React.Component {
|
|||
this.mark = null;
|
||||
this.map = props.editor.map.map;
|
||||
this.location = [];
|
||||
// this.mark.addTo(props.editor.map.map);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
@ -39,7 +38,6 @@ export class UserLocation extends React.Component {
|
|||
if (this.location && this.location.length === 2) {
|
||||
this.panMapTo(this.location[0], this.location[1]);
|
||||
} else {
|
||||
console.log('hoho');
|
||||
this.getUserLocation(this.panMapTo);
|
||||
}
|
||||
|
||||
|
@ -64,6 +62,6 @@ export class UserLocation extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<div className="locate-geo-button" onClick={this.centerMapOnLocation} />
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue