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
Solved! Go to Solution.
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/ and here's a codepen showing how to add this specific service: https://codepen.io/john-grayson/pen/WNBzaPx
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.
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/
You'll find more via Google search.
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
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/ and here's a codepen showing how to add this specific service: https://codepen.io/john-grayson/pen/WNBzaPx
Thanks Will try this