Skip to content

Commit

Permalink
load deckgl layers as project opens
Browse files Browse the repository at this point in the history
  • Loading branch information
amcarrero committed Apr 18, 2024
1 parent 892e0af commit 4ec6499
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Components/CityIO/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ const CityIO = (props) => {
Object.keys(lastJsonMessage.content).forEach((key)=>{
if(possibleModules.includes(key) && key !== 'scenarios' && key !== 'indicators'){
m[key] = lastJsonMessage.content[key]
}
} else if(key === 'deckgl'){
lastJsonMessage.content.deckgl
.forEach((layer) => {
m[layer.type]={ data: layer.data, properties: layer.properties }
});
}
}
);

// When we receive a GRID message, we ask for the scenarios of the table we´re
// connected, and for the core modules
sendJsonMessage({
Expand Down

0 comments on commit 4ec6499

Please sign in to comment.