mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-07 09:14:18 -07:00
Zoom fade for higher zoom levels (#265)
This commit is contained in:
parent
f9ffe305b2
commit
92efc5c937
21 changed files with 1617 additions and 1348 deletions
22
client/src/components/mapWrapper.tsx
Normal file
22
client/src/components/mapWrapper.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import * as React from 'react';
|
||||
import {useFlags} from '../contexts/FlagContext';
|
||||
import MapboxMap from './mapboxMap';
|
||||
import OpenLayersMap from './openlayersMap';
|
||||
import * as constants from '../data/constants';
|
||||
|
||||
const MapWrapper = () => {
|
||||
const flags = useFlags();
|
||||
return (
|
||||
<div>
|
||||
{
|
||||
flags.includes('mb') ?
|
||||
<MapboxMap /> :
|
||||
<OpenLayersMap features={[]}/>
|
||||
}
|
||||
<p>Current Score Property: {constants.SCORE_PROPERTY}</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
export default MapWrapper;
|
Loading…
Add table
Add a link
Reference in a new issue