<div dir="ltr"><div>Hi,<br><br>With the layer class "ArcGISREST93" mentioned, it seems you are at the wrong place for asking. It seems you are using OpenLayers 2 whereas this list is for OpenLayers 3 dev questions.<br><br>You should ask on the OpenLayers 2 users list at <a href="https://lists.osgeo.org/mailman/listinfo/openlayers-users/">https://lists.osgeo.org/mailman/listinfo/openlayers-users/</a> instead.<br><br></div><div>Cheers<br><br></div><div>Thomas Gratier</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-28 6:35 GMT+02:00 Robert Sanson <span dir="ltr"><<a href="mailto:Robert.Sanson@asurequality.com" target="_blank">Robert.Sanson@asurequality.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Phil<br>
<br>
I have done this. What I do is prepare the ArcGIS REST query URL eg:<br>
<br>
var qryurl = "<a href="http://myserver/ArcGIS/rest/services/mapservice_cadastre_prod/MapServer/7/query?text=&geometry=" target="_blank">http://myserver/ArcGIS/rest/services/mapservice_cadastre_prod/MapServer/7/query?text=&geometry=</a>"+easting+","+northing+"&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelWithin&where=&returnGeometry=false&outSR=&outFields=par_id&f=pjson";<br>
<br>
Then submitted this via OpenLayers.Request.Get call:<br>
<br>
OpenLayers.Request.GET({<br>
          url: qryurl,<br>
          callback: setHTML1<br>
        });<br>
<br>
These code fragments are inside a :<br>
<br>
 map.events.register('click', map, function (e) {<br>
...<br>
}<br>
<br>
function. Then I have written the setHTML1 callback to parse the returned JSON.<br>
<br>
Cheers,<br>
<br>
Robert Sanson<br>
________________________________________<br>
From: <a href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a> <<a href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a>> on behalf of Phil Scadden <<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>><br>
Sent: Tuesday, 28 April 2015 3:42 p.m.<br>
To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>; <a href="mailto:ol3-dev@googlegroups.com">ol3-dev@googlegroups.com</a><br>
Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query     functions.<br>
<span class=""><br>
I have an arcGIS server that I want to use that is not publishing WMS or<br>
WFS, just REST supporting Identify and Find. I can draw it with the<br>
ArcGISREST93 layer tool but I also want to query it. I found patches<br>
from 5 years ago with some work on this but no updates. Has anyone<br>
played with openlayers and arcGIS REST-only servers? Any code updates?<br>
<br>
Notice: This email and any attachments are confidential.<br>
If received in error please destroy and immediately notify us.<br>
Do not copy or disclose the contents.<br>
<br>
</span>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br></div>