j40-cejst-2/client/src/components/mapWrapper.tsx
Nat Hillard beac44ef20
Various map styling fixes (#278)
Addresses #182, #291, #273 and #191 

In particular:
* Removes zoom fading for now
* adds legend
* Styles mapbox popup correctly
* Styles zoom control
* Adds feature borders at higher zoom levels
2021-07-01 12:57:59 -04:00

20 lines
411 B
TypeScript

import * as React from 'react';
import {useFlags} from '../contexts/FlagContext';
import MapboxMap from './mapboxMap';
import OpenLayersMap from './openlayersMap';
const MapWrapper = () => {
const flags = useFlags();
return (
<div>
{
flags.includes('mb') ?
<MapboxMap /> :
<OpenLayersMap features={[]}/>
}
</div>
);
};
export default MapWrapper;