imageService identify sample

179
4
Jump to solution
01-26-2022 07:53 PM
Ranga_Tolapi
Occasional Contributor II

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?).

0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

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. 

View solution in original post

4 Replies
UndralBatsukh
Esri Regular Contributor

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. 

Ranga_Tolapi
Occasional Contributor II

Thank you @UndralBatsukh. Sometime back I tried by passing url as first parameter and it worked.

0 Kudos
JohnGrayson
Esri Regular Contributor

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.

0 Kudos
JohnGrayson
Esri Regular Contributor

Here's an example of calling the ImageryLayer.identify():
https://codepen.io/john-grayson/pen/JjOdPGY