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 classnames from "classnames";
import { connect } from "react-redux";
import _ from "lodash";
import ReactMapGl, {
WebMercatorViewport,
ScaleControl,
NavigationControl,
AttributionControl,
} from "react-map-gl";
import turfBbox from "@turf/bbox";
import { useHistory, useLocation } from "react-router-dom";
import React, {useState, useCallback, useMemo, useEffect} from 'react'
import classnames from 'classnames'
import {connect} from 'react-redux'
import _ from 'lodash'
import ReactMapGl, {WebMercatorViewport, ScaleControl, NavigationControl, AttributionControl} from 'react-map-gl'
import turfBbox from '@turf/bbox'
import {useHistory, useLocation} from 'react-router-dom'
import { useConfig } from "config";

View file

@ -336,8 +336,8 @@ function MapPage({ login }) {
<Button
style={{
position: "absolute",
left: 44,
top: 9,
left: 16,
top: 16,
}}
primary
icon="bars"