Improve placement of map controls and popovers (fixes #272)

This commit is contained in:
Paul Bienkowski 2022-09-12 17:16:35 +02:00 committed by gluap
parent 7021af8e14
commit 5774a52773
No known key found for this signature in database
2 changed files with 9 additions and 14 deletions

View file

@ -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";

View file

@ -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"