Saturday, 20 August 2016

arcgis online - How to access .shp file from local computer or some other server


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?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...