Skip to content

Commit

Permalink
#464 Layer Organization
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed May 16, 2024
1 parent ac15e40 commit 0f0e3f4
Show file tree
Hide file tree
Showing 12 changed files with 1,513 additions and 263 deletions.
106 changes: 106 additions & 0 deletions configure/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions configure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"immutable": "^5.0.0-beta.4",
"leaflet": "^1.9.4",
"react": "^17.0.2",
"react-beautiful-dnd": "^13.1.1",
"react-color": "^2.19.3",
"react-dom": "^17.0.2",
"react-redux": "^8.1.3",
Expand Down
10 changes: 6 additions & 4 deletions configure/src/components/Map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ const Map = ({ configuration, layer }) => {
],
parseFloat(configuration?.msv?.view?.[2] || 0)
);
L.tileLayer(layer.url, {
maxZoom: 19,
tms: true,
}).addTo(m);
try {
L.tileLayer(layer.url, {
maxZoom: 19,
tms: true,
}).addTo(m);
} catch (err) {}
setMap(m);
};
// Make viewer
Expand Down
Loading

0 comments on commit 0f0e3f4

Please sign in to comment.