Skip to content

Commit

Permalink
update: remove all references for modiis layer from app
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyamaro15 committed Jun 26, 2024
1 parent 67297df commit fa4f44a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
18 changes: 9 additions & 9 deletions configs/modis-viirs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ export const MODISLayerIDs = [
id: 'MODIS48',
layerIds: [21],
type: 'dynamic',
url:
'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_48hrs/MapServer/'
url: '',
//'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_48hrs/MapServer/'
},
{
id: 'MODIS72',
layerIds: [21],
type: 'dynamic',
url:
'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_7d/MapServer/'
url: '',
//'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_7d/MapServer/'
},
{
id: 'MODIS7D',
layerIds: [21],
type: 'dynamic',
url:
'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_7d/MapServer/'
url: '',
//'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_7d/MapServer/'
},
{
id: 'MODIS1Y',
layerIds: [21],
type: 'dynamic',
url:
'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_1yr/MapServer'
}
url: '',
//'https://gis-gfw.wri.org/arcgis/rest/services/Fires/FIRMS_Global_MODIS_1yr/MapServer'
},
];
7 changes: 4 additions & 3 deletions configs/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,15 @@ export default {
opacity: 0.35,
layerIds: [0],
},
{
/* {
id: 'LEGEND_LAYER',
type: 'dynamic',
url: 'https://gis-gfw.wri.org/arcgis/rest/services/legends/MapServer',
url: '',
//url: 'https://gis-gfw.wri.org/arcgis/rest/services/legends/MapServer',
visible: false,
opacity: 0,
layerIds: [],
},
}, */
{
id: 'USER_FEATURES',
type: 'graphic',
Expand Down
4 changes: 3 additions & 1 deletion src/js/controllers/mapController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,8 @@ export class MapController {
}

initializeAndSetMODISLayers(MapImageLayer: any) {
return MODISLayerIDs.map(({ id, url, layerIds }) => {
const modisLayer = MODISLayerIDs.map(({ id, url, layerIds }) => {
if (!url) return null;
return new MapImageLayer({
id: id,
url,
Expand All @@ -1980,6 +1981,7 @@ export class MapController {
],
});
});
return modisLayer.filter((item) => item !== null);
}

setMODISDefinedRange(sublayerType: string): void {
Expand Down

0 comments on commit fa4f44a

Please sign in to comment.