mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
location button
This commit is contained in:
parent
40993e2dd0
commit
e7960a6bf8
5 changed files with 81 additions and 49 deletions
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import L, { marker } from 'leaflet';
|
||||
import { DomMarker } from '$utils/DomMarker';
|
||||
import { Icon } from '$components/panels/Icon';
|
||||
|
||||
export class UserLocation extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -61,7 +62,9 @@ export class UserLocation extends React.Component {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<div className="locate-geo-button" onClick={this.centerMapOnLocation} />
|
||||
<div className="locate-geo-button" onClick={this.centerMapOnLocation}>
|
||||
<Icon icon="icon-locate" size={30} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue