Select to view content in your preferred language

TREE COVER LOSS Url

58
3
Wednesday
SudeeshNarayanan
New Contributor

Hi! I am very new to ArcGIS Online and I have a question regarding a layer.

"TREE COVER LOSS (annual, 30m, global, Hansen/UMD/Google/USGS/NASA)"

I am trying to feature this particular dataset in my Angular application.

I have tried with 'FeatureLayer' but couldn't find the URL to this feature

0 Kudos
3 Replies
BernSzukalski
Esri Frequent Contributor

I did a quick search and am thinking this might be the layer you want to use (?):

https://www.arcgis.com/home/item.html?id=7254c77048444a45a5d41cf43445572b

If so it is a WMTS service and you'll find the URL down along the right side of the item overview page:

https://tiles.globalforestwatch.org/umd_tree_cover_loss/v1.8/tcd_30/wmts

If a different layer you are wanting to use, you'll still find the link along the right side of the item overview.

BernSzukalski_0-1718810108236.png

As for Angular, there are a few published how-to articles and videos along with this developer help:

https://developers.arcgis.com/javascript/latest/components-get-started-angular/

https://www.esri.com/content/dam/esrisites/en-us/events/conferences/2020/developer-summit/arcgis-api...

You'll find more via Google search.

 

0 Kudos
SudeeshNarayanan
New Contributor

In Angular I implemented base map and add few polygons. What I wanted to include is this particular data set on the base map.

"Hansen/UMD/Google/USGS/NASA, accessed through Global Forest Watch". 
Tried adding via FeatureLayer

const deforestationLayer = new FeatureLayer({
    });
Getting error: 404.

And I tried with online web map. Tried adding "Hansen/UMD/Google/USGS/NASA" to a basemap.
 got the error:
"
The layer, Tree cover loss with time slider (Hansen/UMD/Google/USGS/NASA), cannot be added to the map."

 

0 Kudos
JohnGrayson
Esri Regular Contributor

That layer is a tiled raster layer so that is why you can't add it as a FeatureLayer.  Here's an SDK sample for how to add wmts layers: https://developers.arcgis.com/javascript/latest/sample-code/layers-wmts/ 

0 Kudos