Skip to content

Commit

Permalink
Merge pull request #4 from CityScope/fix/cityio-url
Browse files Browse the repository at this point in the history
changed cityio url to main server
  • Loading branch information
RELNO authored Oct 7, 2024
2 parents bc6e642 + e00b214 commit 641cc32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ProjectionMapping/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function ProjectionMapping(props) {

const { readyState, sendJsonMessage, lastJsonMessage } = useWebSocket(
// get cityIO url from the settings
getCityIOUrl.test,
getCityIOUrl.current,
{
share: true,
shouldReconnect: () => true,
Expand Down Expand Up @@ -52,12 +52,12 @@ export default function ProjectionMapping(props) {
};
});
// if the lastJsonMessage is of type "INDICATOR", log it
} else if (lastJsonMessage && lastJsonMessage.type === "INDICATOR") {
} else if (lastJsonMessage && lastJsonMessage.type === "MODULE") {
// setCityIOData so that the INDICATOR nested data is updated
setCityIOData((prev) => {
return {
...prev,
LAYERS: lastJsonMessage.content?.moduleData?.deckgl,
LAYERS: lastJsonMessage.content?.moduleData?.layers,
};
});
// if the lastJsonMessage is of type "ERROR", log it
Expand Down

0 comments on commit 641cc32

Please sign in to comment.