Commit 9bff52a5 authored by Elisabeth Reuhl's avatar Elisabeth Reuhl
Browse files

Stop showing multiple worlds on low zoom levels; prevent selecting points outside the 'main world'

parent de0ce0fa
......@@ -262,11 +262,14 @@ export const OurMap = () => {
className="markercluster-map"
center={mapCenter}
zoom={zoomLevel}
minZoom={3}
maxBounds={[[-90, -180], [90, 180]]}
onClick={(event) => {if(input.drawBBox){createBoundingBox(event)}}}
>
<TileLayer
attribution={osmAttr}
url={osmTiles}
noWrap={true}
/>
{input.drawBBox&&input.boundingBoxCorner1.length!==0
&&<Circle
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment