Improve placement of map controls and popovers (fixes #272)
This commit is contained in:
parent
7021af8e14
commit
5774a52773
|
@ -1,15 +1,10 @@
|
||||||
import React, { useState, useCallback, useMemo, useEffect } from "react";
|
import React, {useState, useCallback, useMemo, useEffect} from 'react'
|
||||||
import classnames from "classnames";
|
import classnames from 'classnames'
|
||||||
import { connect } from "react-redux";
|
import {connect} from 'react-redux'
|
||||||
import _ from "lodash";
|
import _ from 'lodash'
|
||||||
import ReactMapGl, {
|
import ReactMapGl, {WebMercatorViewport, ScaleControl, NavigationControl, AttributionControl} from 'react-map-gl'
|
||||||
WebMercatorViewport,
|
import turfBbox from '@turf/bbox'
|
||||||
ScaleControl,
|
import {useHistory, useLocation} from 'react-router-dom'
|
||||||
NavigationControl,
|
|
||||||
AttributionControl,
|
|
||||||
} from "react-map-gl";
|
|
||||||
import turfBbox from "@turf/bbox";
|
|
||||||
import { useHistory, useLocation } from "react-router-dom";
|
|
||||||
|
|
||||||
import { useConfig } from "config";
|
import { useConfig } from "config";
|
||||||
|
|
||||||
|
|
|
@ -336,8 +336,8 @@ function MapPage({ login }) {
|
||||||
<Button
|
<Button
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
left: 44,
|
left: 16,
|
||||||
top: 9,
|
top: 16,
|
||||||
}}
|
}}
|
||||||
primary
|
primary
|
||||||
icon="bars"
|
icon="bars"
|
||||||
|
|
Loading…
Reference in a new issue