mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-04 00:04:18 -07:00
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
20 lines
411 B
TypeScript
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;
|