location button

This commit is contained in:
muerwre 2018-08-27 18:07:58 +07:00
parent 40993e2dd0
commit e7960a6bf8
5 changed files with 81 additions and 49 deletions

View file

@ -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>
);
}
}