Good afternoon,
In SDK 3.X there was simple but very useful method: getImageUrl(extent, width, height, callback) [https://developers.arcgis.com/javascript/3/jsapi/arcgisimageservicelayer-amd.html#getimageurl]
Does ImageryLayer have something similar in SDK 4.X?
I want to get url/src (exportImage request) for specific extent, width, height. It looks like SDK 4.X regressed in this area...
Oh, I think you were close. Maybe I needed fetchImage() [now deprecated], which probably works like fetchImage() in WMSLayer (https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapimagelayer-s-createexportimageparameters/m-p/1631442#M87346)
But I was impatient a bit and generated needed url manually... 🙂
Thank you for reply!
Sorry, not my area of expertise, just trying to help. It sounds like what you want is this REST operation?https://developers.arcgis.com/rest/services-reference/enterprise/export-image/Which is kinda similar to this?https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#fetchPixels
Thank you. I am afraid it is totally different method under the same name..
Hi @DenisRomanovas, thanks for posting your question here. Is this the method you're looking for?https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getImageUrl
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.