mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-04 06:34:18 -07:00
Census block groups should highlight when selected (#317)
* Fixes #280 - adds territory focus buttons for Alaska, Hawaii, Lower 48, and Puerto Rico to enable easy zoom to these locations * Adding tests - Specifically: * Adding VSCode debug command for Cypress and debug port specification * Disabling CORS on local tests * Adding waitForMapIdle Cypress test helper * Adding constants for easy change and access
This commit is contained in:
parent
5bade764c6
commit
d0c281ec72
9 changed files with 126 additions and 16 deletions
|
@ -1,12 +1,12 @@
|
|||
import * as React from 'react';
|
||||
import * as constants from '../data/constants';
|
||||
import * as styles from './popupContent.module.scss';
|
||||
import {GeoJsonProperties} from 'geojson';
|
||||
|
||||
interface IPopupContentProps {
|
||||
properties: constants.J40Properties,
|
||||
properties: GeoJsonProperties,
|
||||
}
|
||||
|
||||
|
||||
const PopupContent = ({properties}:IPopupContentProps) => {
|
||||
const readablePercent = (percent: number) => {
|
||||
return `${(percent * 100).toFixed(2)}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue