Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Geology and visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresKasekamp committed Nov 2, 2023
1 parent d93b28d commit ef0cae5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 7 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,17 @@ require([
************************************************************/

const graphicsLayer = initLayers.setupGraphicsLayer();
const communicationTower = initLayers.setupInternalLayer();
const communicationTower = initLayers.setupInternalLayer("66e382030b224ffa999249a4d1cbbf4f", "Sidemastid");
const boreholes = initLayers.setupInternalLayer("e1ceb1c5197b401e88deba0888f97000", "Puuraugud");
const constructionGeology = initLayers.setupInternalLayer("35026f30f1d94e438110ad23b8dfb1fa", "Ehitusgeoloogia");
//const communicationTower = initLayers.setupInternalLayer();
const ortofotoWMS = initLayers.setupWMSLayer();

const scene = initScene.setupWebScene(
graphicsLayer,
communicationTower,
boreholes,
constructionGeology,
ortofotoWMS
);
const view = initScene.setupWebView(scene);
Expand All @@ -89,7 +94,7 @@ require([
// Build a GroupLayer
const treeGroupLayer = new GroupLayer({
title: "Taimkate",
visible: true,
visible: false,
visibilityMode: "exclusive",
});

Expand Down
7 changes: 4 additions & 3 deletions modules/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ define(["esri/layers/GraphicsLayer", "esri/layers/SceneLayer", "esri/layers/WMSL
title: "Joonistatud kihid",
}),

setupInternalLayer: () =>
setupInternalLayer: (layerID, layerTitle) =>
new SceneLayer({
portalItem: {
id: "66e382030b224ffa999249a4d1cbbf4f",
id: layerID,
},
title: "Sidemastid",
title: layerTitle,
visible: false,
}),

// TODO seda saaks võibolla ka otse tuua teenusest üle ja proovi WMTS-ga niimoodi, äkki saaks basemap alla lisada
Expand Down

0 comments on commit ef0cae5

Please sign in to comment.