Skip to content

Commit

Permalink
only show public map layer logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
micheal-w-wells committed Jan 3, 2024
1 parent 4a6d548 commit ee2c5ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appv2/src/UI/Map/VectorOverviewLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ export const VectorOverviewLayer = (props) => {
const container = context.layerContainer || context.map;
const CONFIG = useSelector(selectConfiguration);

const isAuthenticated = useSelector((state: any) => state.Auth.authenticated)


useEffect(() => {
if(!isAuthenticated) return;
let PAINT_RULES = [
{
dataLayer: 'iapp',
Expand Down Expand Up @@ -81,7 +84,7 @@ export const VectorOverviewLayer = (props) => {
container.removeLayer(layer);
};
},
[]
[JSON.stringify(isAuthenticated)]
);

return null;
Expand Down

0 comments on commit ee2c5ff

Please sign in to comment.