Refactorization of FiresMap
This commit is contained in:
parent
77b56e4169
commit
f6453c77d7
8 changed files with 150 additions and 128 deletions
|
|
@ -9,6 +9,7 @@ import { translate } from 'react-i18next';
|
|||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
import update from 'immutability-helper';
|
||||
import geolocation from '/imports/startup/client/geolocation';
|
||||
import { positionIcon } from '/imports/ui/components/Maps/Icons';
|
||||
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.css';
|
||||
import 'leaflet-graphicscale/dist/Leaflet.GraphicScale.min.js';
|
||||
import 'leaflet-sleep/Leaflet.Sleep.js';
|
||||
|
|
@ -16,16 +17,6 @@ import Control from 'react-leaflet-control';
|
|||
import { Button, ButtonToolbar } from 'react-bootstrap';
|
||||
import './SelectionMap.scss';
|
||||
|
||||
const positionIcon = new Leaflet.Icon({
|
||||
iconUrl: '/your-position.png',
|
||||
/* shadowUrl: require('../public/marker-shadow.png'), */
|
||||
iconSize: [50, 77], // size of the icon
|
||||
/* shadowSize: [50, 64], // size of the shadow */
|
||||
iconAnchor: [25, 82] // point of the icon which will correspond to marker's location
|
||||
/* shadowAnchor: [4, 62], // the same for the shadow
|
||||
* popupAnchor: [-3, -76]// point from which the popup should open relative to the iconAnchor */
|
||||
});
|
||||
|
||||
class SelectionMap extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue