Skip to content

Commit

Permalink
fix viewer redirect to projection mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
RELNO committed May 10, 2024
1 parent e142434 commit 5207f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const getCSJSLocation = () => {
const parsed = queryString.parse(location.search);
const cityscopejs_local_url =
"cityscopejs_local" in parsed
? "http://localhost:3000/"
: "https://cityscope.media.mit.edu/CS_cityscopeJS/";
? "http://localhost:3000"
: "https://cityscope.media.mit.edu/CS_cityscopeJS";
console.log("cityScopeJS location: ", cityscopejs_local_url);
return cityscopejs_local_url;
};
Expand Down
7 changes: 5 additions & 2 deletions src/views/CityIOviewer/SelectedTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import { generalSettings } from "../../../settings/settings";
export default function SelectedTable(props) {
const selectedTable = props.clicked;

const cityscopeJSendpoint = generalSettings.csjsURL + "?cityscope=";
const projectionEndpoint = generalSettings.csjsURL + "?projection=";
const cityscopeJSendpoint = generalSettings.csjsURL + "/" + "?cityscope=";
// for projection mapping use this endpoint
// https://cityscope.media.mit.edu/CS_cityscopeJS_projection_mapping/?cityscope=TABLE NAME
const projectionEndpoint =
generalSettings.csjsURL + "_projection_mapping/?cityscope=";

const [open, setOpen] = useState(false);

Expand Down

0 comments on commit 5207f7d

Please sign in to comment.