mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-31 20:31:16 -07:00
Followup styling fixes (#335)
* Followup to add proper score property to popup * Adding Additional property name constants
This commit is contained in:
parent
4443f60b44
commit
6c8d71c5b9
5 changed files with 10 additions and 9 deletions
|
@ -63,7 +63,7 @@ const J40Map = () => {
|
|||
source: feature.source,
|
||||
sourceLayer: feature.sourceLayer,
|
||||
id: feature.id,
|
||||
}, {selected: isSelected});
|
||||
}, {[constants.SELECTED_PROPERTY]: isSelected});
|
||||
if (isSelected) {
|
||||
selectedFeature.current = feature;
|
||||
} else {
|
||||
|
|
|
@ -26,7 +26,7 @@ const PopupContent = ({properties}:IPopupContentProps) => {
|
|||
|
||||
const getTitleContent = (properties: constants.J40Properties) => {
|
||||
const blockGroup = properties[constants.GEOID_PROPERTY];
|
||||
const score = properties[constants.SCORE_PROPERTY] as number;
|
||||
const score = properties[constants.SCORE_PROPERTY_HIGH] as number;
|
||||
return (
|
||||
<div className={styles.titleContainer}>
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue