Skip to content

Commit

Permalink
remove basemaps leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
zoran995 committed Nov 29, 2024
1 parent 6cacac8 commit 310e823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module.exports = terria
document.head.appendChild(styleSheet);
}

render(terria, [], viewState);
render(terria, viewState);
} catch (e) {
console.error(e);
console.error(e.stack);
Expand Down
9 changes: 2 additions & 7 deletions lib/Views/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ import RedBox from "redbox-react";
import React from "react";
import Variables from "../Styles/variables.scss";

export default function renderUi(terria, allBaseMaps, viewState) {
export default function renderUi(terria, viewState) {
let render = () => {
const UI = require("./UserInterface").default;
ReactDOM.render(
<UI
terria={terria}
allBaseMaps={allBaseMaps}
viewState={viewState}
themeOverrides={Variables}
/>,
<UI terria={terria} viewState={viewState} themeOverrides={Variables} />,
document.getElementById("ui")
);
};
Expand Down

0 comments on commit 310e823

Please sign in to comment.