4

I installed ArcGIS 10.2 for Server on my localhost and created and published a feature service on it. Now I want to use the feature service I created on a simple html page using Javascript. How can I do that?

I read the resources on arcgis.com but it just described how to do it with the maps on arcgis.com!

I don't need a base map from arcgis.com. actually I want to use the web page offline(just on localhost).

1 Answer 1

4

To create a feature layer, you need access to the layer's REST endpoint. This can be on the web, or on your localhost - see The Services Directory and the REST API.

See the Feature Layer help page to get started with creating a feature layer using the ArcGIS Server JS API - the URL you use can point to your local machine.

2
  • can you help me with a simple example? Sep 7, 2014 at 6:34
  • Here is an example in the Esri sandbox, showing how to create a feature layer. Change the URL on line 40 (var featureLayer = new FeatureLayer(...) to point to your local host's ArcGIS Server Sep 7, 2014 at 23:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.