Skip to content

Commit

Permalink
Fixed downloading IMDF bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoleiftekhar committed Aug 15, 2024
1 parent 3f1a52a commit c34de01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/conversion/places-preview-map/indes.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export const imdfPreviewMap = css`

export const layerSelect = css `
position: relative;
top: 60%;
bottom: -60%;
`;


export const textWrapper = css `
flex: 1 1 5rem;
position: relative;
Expand Down
5 changes: 5 additions & 0 deletions src/pages/conversion/places-preview-map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ const PlacesPreviewMap = ({ style, unitsChanged, levelsChanged, footprintChanged

// Entry point when "unit.geojson" is pressed; the following code should be refactored due to redundancy
function unitInteractions(units, drawingManager, map) {
// Update the units state with the edited features (for updating zip)
unitsChanged(units);

var unitLayer, unitLines, polygonHoverLayer, polygonClickLayer, unitSymbols;
var layersAdded = [unitLayer, unitLines, polygonHoverLayer, polygonClickLayer, unitSymbols];
const groupedFeatures = groupAndSort(units, language, selectedLevel);
Expand Down Expand Up @@ -346,6 +349,7 @@ const PlacesPreviewMap = ({ style, unitsChanged, levelsChanged, footprintChanged
// Entry point when "level.geojson" is pressed; the following code should be refactored due to redundancy
function levelInteractions(levels, drawingManager, map) {
// Retrieve information about the level currently chosen by user
levelsChanged(levels);
const selectedLevelDetails = levels.features.filter(item => item.id === selectedLevel.id);
var lineLayer, lineHoverLayer, lineClickLayer;
var layersAdded = [lineLayer, lineHoverLayer, lineClickLayer];
Expand Down Expand Up @@ -421,6 +425,7 @@ const PlacesPreviewMap = ({ style, unitsChanged, levelsChanged, footprintChanged

// Entry point when "footprint.geojson" is pressed; the following code should be refactored due to redundancy
function footprintInteractions(footprint, drawingManager, map) {
footprintChanged(footprint);
var footprintLayer, footprintLines, footprintHoverLayer, footprintClickLayer;
var layersAdded = [footprintLayer, footprintLines, footprintHoverLayer, footprintClickLayer];

Expand Down

0 comments on commit c34de01

Please sign in to comment.