Any sample code available for imageService.identify(params, requestOptions?)?
I could not figure out on how to pass ArcGIS REST image service URL to identify method of imageService, something similar to identify.identify(url, params, requestOptions?).
Solved! Go to Solution.
Hi there,
So our documentation is missing the url parameter on imageService.identify. We will get this fixed in the next release. If you are using JavaScript then you can pass the url as the first parameter (imageService.identify(url, params, options).
You can also add your imageService as a layer then setup a popupTemplate on the layer.
Thanks for bringing this issue to our attention.
Hi there,
So our documentation is missing the url parameter on imageService.identify. We will get this fixed in the next release. If you are using JavaScript then you can pass the url as the first parameter (imageService.identify(url, params, options).
You can also add your imageService as a layer then setup a popupTemplate on the layer.
Thanks for bringing this issue to our attention.
Thank you @UndralBatsukh. Sometime back I tried by passing url as first parameter and it worked.
When calling the 'identify()' method on the ImageService you don't need the URL parameter as the API will know that from the ImageSerivce itself.
Here's an example of calling the ImageryLayer.identify():
https://codepen.io/john-grayson/pen/JjOdPGY