ArcGIS API for JavaScript QueryTask for user's own map

المشرف العام

Administrator
طاقم الإدارة
I am using ArcGIS online to create a web map and then I want to query this web map using ArcGIS API for JavaScript. In the tutorials I read I see

var queryTask = new QueryTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5");

But I want to use my own web map which is "http://pawebgate.maps.arcgis.com/home/webmap/viewer.html?webmap=a0c647159b46456b963d8b180e062b57"

I have tried using the whole http://... it did not work.I have tried using only a0c647159b46456b963d8b180e062b57 it did not work.

Has anyone got any idea about how to use my web map instead of the http://samplserver1 ...

Thank you



أكثر...
 
أعلى