Skip to content
Snippets Groups Projects
Commit 524459d1 authored by Briggs, Aaron Shane's avatar Briggs, Aaron Shane
Browse files

legend working as expected

parent e2111b36
No related branches found
No related tags found
No related merge requests found
......@@ -51,5 +51,4 @@ export const getGroundwaterLevelsMarkers = function(groundwaterApprovals) {
groundwaterMarkers.push(defineCircleMarker(null, `${GW_LEVEL_CLASS} approval-code-a`, GW_LEVEL_RADIUS, 'Approved'));
}
return groundwaterMarkers;
// return defineCircleMarker(null, GW_LEVEL_CLASS, GW_LEVEL_RADIUS, 'Field visit');
};
......@@ -215,25 +215,19 @@ export const getLegendMarkerRows = createSelector(
const compareTsMarkerRow = displayItems.compare ? getTsMarkers('compare', displayItems.compare) : undefined;
const medianMarkerRows = displayItems.median ? getMedianMarkers(displayItems.median) : [];
const floodMarkerRows = displayItems.floodLevels ? getFloodLevelMarkers(displayItems.floodLevels) : [];
/* Add groundwater marker to current row */
if (displayItems.groundwaterPoints) {
const groundwaterApprovals = getGroundwaterApprovals(displayItems.groundwaterPoints);
const gwLevelMarker = getGroundwaterLevelsMarkers(groundwaterApprovals);
if (currentTsMarkerRow) {
currentTsMarkerRow.push(gwLevelMarker);
} else {
currentTsMarkerRow = gwLevelMarker;
console.log('gwLevelMarker ', gwLevelMarker)
}
}
if (currentTsMarkerRow) {
markerRows.push(currentTsMarkerRow);
}
if (compareTsMarkerRow) {
markerRows.push(compareTsMarkerRow);
}
if (displayItems.groundwaterPoints) {
const gwLevelMarker = getGroundwaterLevelsMarkers(getGroundwaterApprovals(displayItems.groundwaterPoints));
markerRows.push(gwLevelMarker);
}
markerRows.push(...medianMarkerRows, ...floodMarkerRows);
console.log('markerRows ', markerRows)
return markerRows;
}
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment