Identify - Selected data not comming from service

2029
0
09-24-2012 05:33 AM
bayramüçüncü
New Contributor III
Hi,
I have a problem about indetify. I have a method that goes to server and gets JSON data about clicked on the Map.

Parameters:
[ATTACH=CONFIG]17914[/ATTACH]

        private Uri buildIdentifyURL(double x, double y, double mapWidth, double mapHeight, int dpi, double minx, double miny, double maxx, double maxy)
        {
            StringBuilder sbURL = new StringBuilder();
            sbURL.Append("http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/identify?geometryType=esriGeometryPoint&f=json&layers=visible&returnGeometry=false");
            sbURL.AppendFormat("&geometry={0},{1}", x.ToString(), y.ToString());
            sbURL.AppendFormat("&mapExtent={0},{1},{2},{3}", minx.ToString(), miny.ToString(), maxx.ToString(), maxy.ToString());
            sbURL.AppendFormat("&imageDisplay={0},{1},{2}", mapWidth.ToString(), mapHeight.ToString(), dpi);
            sbURL.Append("&tolerance=10");
            return new Uri(sbURL.ToString());
        }


When  I click the Map no result is coming from server. My service is working well. The California service has point, polygon, polyline datas on it. I am clicking the point or any line on map, but no result.
0 Kudos
0 Replies