Select to view content in your preferred language

Can I use Image Service as base layer in the basemap

343
0
01-29-2021 07:08 AM
by Anonymous User
Not applicable

Hi Friends, I am using ArcGis Javascript Api 4.16 and I am trying to use the service https://naip.arcgis.com/arcgis/rest/services/NAIP/ImageServer as a baselayer of the Basemap using the below code

new Basemap({
baseLayers: [
new ImageryLayer({
url: "https://naip.arcgis.com/arcgis/rest/services/NAIP/ImageServer",

format: "jpgpng"
})
],...........

but the above is not working. I would like to know whether I am doing it the correct way or is there a different approach to achieve the same?

@UndralBatsukh  Any idea how can I achieve the above?

0 Kudos
0 Replies