ArcGIS Web AppBuilder - Basemap Widget URLs

235
0
09-29-2022 11:25 AM
LanceCole
MVP Regular Contributor

We utilize the basemap widget in our application generated from WAB 2.24.  We currently have many years of imagery that are hosted on our ArcGIS Servers as individual Image Services for each year.  We have generated a derived Mosaic dataset with all the imagery together in one Image Service.  However, I have not been able to figure out how to update the URLs in the basemap widget to include a query to limit the data to a single year.

Typically, each base map pointed to its appropriate year's Image service and works great.

https://<gis_server_url>/server/rest/services/ortho_2003/ImageServer

https://<gis_server_url>/server/rest/services/ortho_2005/ImageServer

etc.

However, we would like to host all the imagery on a single service and filer the data by year.  This works great in maps and other components but I have not been able to figure out how to add each year's url to the basemap widget.

I tried adding a query to the url but cannot get the widget to accept the path.

https://<gis_server_url>/server/rest/services/ortho_2005/ImageServer/query?where=Year=2005&f=json

I also tried publishing the Mosaic as a MapService but the widget will not accept the layer identifier or layer index.

https://<gis_server_url>/server/rest/services/ortho_2005/MapServer/2

Both ImageService and MapService URL will display alone; however, it displays everything.

Are there any other options that can be utilized as a basemap that would allow filtering by year?

 

Tags (3)
0 Replies