mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-29 01:31:40 -07:00
Clicking territory focus button sometimes focuses on a different CBG, not the actual territory (#412)
* Fixing #410 - Clicking a CBG region, then another, then hitting territory button results in random CBG being selected * Part of fix for #410 - refactoring selection logic to remove setFeatureState call. * Renaming layers for clarity and adding constants * Using constant for layer identifier * Fixes #409 - Loading a URL with lat/lng/zoom specified occasionally does not work . We now parse the URL on page before initializing the map. Also adds tests for this
This commit is contained in:
parent
36f43b2d44
commit
a2ba9236ab
6 changed files with 78 additions and 87 deletions
|
@ -1,8 +1,9 @@
|
|||
import React from 'react';
|
||||
import Layout from '../components/layout';
|
||||
import MapWrapper from '../components/mapWrapper';
|
||||
import J40Map from '../components/J40Map';
|
||||
import HowYouCanHelp from '../components/HowYouCanHelp';
|
||||
import DownloadPacket from '../components/downloadPacket';
|
||||
import MapLegend from '../components/mapLegend';
|
||||
import * as styles from './cejst.module.scss';
|
||||
|
||||
interface IMapPageProps {
|
||||
|
@ -51,7 +52,9 @@ const CEJSTPage = ({location}: IMapPageProps) => {
|
|||
<DownloadPacket />
|
||||
</div>
|
||||
</section>
|
||||
<MapWrapper />
|
||||
<h2>Explore the Tool</h2>
|
||||
<J40Map location={location}/>
|
||||
<MapLegend />
|
||||
<HowYouCanHelp />
|
||||
</main>
|
||||
</Layout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue