Below is the code in which we can access a feature layer from ArcGIS sample server.
queryTask = new esri.arcgis.gmaps.QueryTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3");
But I want to access my own .shp file residing on my local computer or on another server, e.g this..
queryTask = new esri.arcgis.gmaps.QueryTask("http://172.20.100.12/Demo/Resources/ABC.shp");
In this case, queryTask does not return featureSet and so .shp file could not display on Map.
Where is the problem and how can I fix it?