Skip to content

Commit

Permalink
ndviadded
Browse files Browse the repository at this point in the history
  • Loading branch information
Virginia555 committed Jul 14, 2023
1 parent d1f4bff commit 21ec3da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Website/assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ var NLZ = new ol.layer.Image({
opacity: 0.5,
visible:false,
});
var ndvi = new ol.layer.Image({
title: 'Ndvi',
source: new ol.source.ImageWMS({
url: 'https://www.gis-geoserver.polimi.it/geoserver/wms',
params: { 'LAYERS': 'gisgeoserver_06:ndvi'}
}),
opacity: 0.5,
visible:false,
});

var CaseStudy1 = new ol.layer.Image({
title: 'Case Study',
Expand Down Expand Up @@ -198,7 +207,7 @@ let basemapLayers = new ol.layer.Group({

let overlayLayers = new ol.layer.Group({
title: 'Overlay Layers',
layers: [CaseStudy1, Differences1, LSclipped, NLZ, PlanCurvature1, ProfileCurvature, Slope1, aspect5, dtm_clipped11, dusaf1, faults2, resampled_susceptibility, rivers1, roads1, susceptibility1, susceptibility_reclassified1]
layers: [CaseStudy1,ndvi,Differences1, LSclipped, NLZ, PlanCurvature1, ProfileCurvature, Slope1, aspect5, dtm_clipped11, dusaf1, faults2, resampled_susceptibility, rivers1, roads1, susceptibility1, susceptibility_reclassified1]
})
let TotalMap = new ol.layer.Group({
title: 'Our Map',
Expand Down

0 comments on commit 21ec3da

Please sign in to comment.