Zoom fade for higher zoom levels (#265)

This commit is contained in:
Nat Hillard 2021-06-30 07:08:22 -04:00 committed by GitHub
commit 92efc5c937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 1617 additions and 1348 deletions

View 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;