I just tried out a couple services.. one in web Mercator and one using the NAD83 / UTM zone 16N projection and the both zoomed to my results. I will try out a service with the same projections that you used for sample code #2.Russ
GCS_North_American_1983 Datum: D_North_American_1983
NAD_1983_StatePlane_Texas_South_FIPS_4205_Feet Projection: Lambert_Conformal_Conic False_Easting: 984250.000000 False_Northing: 16404166.666667 Central_Meridian: -98.500000 Standard_Parallel_1: 26.166667 Standard_Parallel_2: 27.833333 Latitude_Of_Origin: 25.666667 Linear Unit: Foot_US GCS_North_American_1983 Datum: D_North_American_1983
Are you using any basemap layers within your project?ThanksRuss
{ "version" : "1.3", "operationalLayers" : [{ "url" : "http://myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer", "visibility" : true, "opacity" : 1, "title" : "GIS Layers" }], "tasks" : { "queryTasks" : [{ "displayField" : "Find Congressional District", "name" : "Congressional District", "parameters" : [{ "defaultValue" : "", "field" : "CD111FP", "helpTip" : "Enter # Here", "operator" : "=", "prompt" : "Find Congressional District by Number" }], "url" : "http://myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer/1", "visibleFields" : ["CD111FP","GEOID10","NAMELSAD10","ALAND10"], "whereClause" : "{0}" }] } }
{ "version" : "1.3", "operationalLayers" : [{ "url" : "http://myserver/ArcGIS/rest/services/maps/Mobile_AMR/MapServer", "visibility" : true, "opacity" : 1, "title" : "GIS Layers" }], "tasks" : { "queryTasks" : [{ "displayField" : "DCU_NAME", "name" : "DCU Query", "parameters" : [{ "defaultValue" : "", "field" : "DCU_NAME", "helpTip" : "Enter DCU Name Here", "operator" : "=", "prompt" : "DCU Query by Name" }], "url" : "http://myserver/ArcGIS/rest/services/maps/Mobile_AMR/MapServer/0", "visibleFields" : ["DCU_NAME","STATUS","DESCRIPTION","NAME"], "whereClause" : "{0}" }] } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.