Open ewlarson opened 6 years ago
@ewlarson I've found that very few publishers take the time to create the thumbnails for their dynamic services. I'm not familiar with the logistics of how they would do so, but I understand it requires specific action(s) for them to take during the publishing process.
I've looked at the Esri REST API a bit to see if the "export" option might be useful here. For example, this call generates an image that could be utilized for a thumbnail:
This shows a lot of promise, but some issues:
I can't get it to work with FeatureService, only MapService. Not sure if that's a result of me not knowing proper syntax, or if it simply isn't possible.
From a practical standpoint, it's very rare for govt agencies to stand up services containing a single theme (single layer). In most situations, many individual layers are bundled together into a one service to serve a specific application. This is relevant, because export only appears to work at the service level (unsure about Esri terminology here) versus layer level. In other words, this works:
https://dnrmaps.wi.gov/arcgis/rest/services/LF_DML/LF_AGOL_STAGING_WTM_Ext/MapServer/export
but not this:
https://dnrmaps.wi.gov/arcgis/rest/services/LF_DML/LF_AGOL_STAGING_WTM_Ext/MapServer/0/export (where 0 represents the first layer in the service)
Speaking only from the GeoData@WI experience, when we do reference services, we often link directly to the layer, like this:
https://dnrmaps.wi.gov/arcgis/rest/services/LF_DML/LF_AGOL_STAGING_WTM_Ext/MapServer/0/
...therefore it seems it would be very dicey to generate a general-purpose thumbnail generator using the export option. i.e., is it safe to assume that you can simply parse out the /0/ and the use that with "&layers=show:0" added to the api call?
Sharing this in case it spurs ideas that may help the status quo!
Issue
Many dynamic_map_layer API calls fail to return a thumbnail. It's possible many of these ArcGIS instances/collections do not support thumbnails.
Examples
Of course, some work...
Resolution