Query using ArcGIS as server

412
1
07-06-2012 11:09 AM
WilliamMobley1
New Contributor
I'm trying to write code that will allow me to use my ArcGIS account as my server to view the map. From there I want to query_within, but this requires a url for the server for the specific layers. How can reference my layers?
0 Kudos
1 Reply
by Anonymous User
Not applicable
Hi William, you can use the createMap method (here) to create your map from ArcGIS.com.  You can reference your individual layers using the response object returned from createMap. Please have a look at working with web map near the very bottom of the page.  It's also worth noting that not all types of queries are supported on Feature layer (FeatureLayer).  Is your web map public? Do you have a link to the map?
0 Kudos