1

I'm writing a web page to display ECB statistics on an ArcGIS JavaScript API-based web map.

I'm a bit lost when selecting a feature service so that I can use the UniqueValueRenderer to make the states pretty colors according to their statistics.

Is there a feature service available on ArcGIS Online that I can use for this?

10
  • What web API (ArcGIS API for JavaScript, Flex, Silverlight, or Web ADF) are you using, assuming you are using one (try not to leave so much to guessing...)?
    – blah238
    Commented Mar 5, 2013 at 0:49
  • Also have a look at the tag wiki for the feature-layer tag which I just added.
    – blah238
    Commented Mar 5, 2013 at 0:50
  • Okay now that that's cleared up, what do you mean by "selecting a feature layer"? There is only one FeatureLayer class in the ArcGIS JavaScript API.
    – blah238
    Commented Mar 5, 2013 at 1:01
  • Also have a look at the Use a unique value renderer sample.
    – blah238
    Commented Mar 5, 2013 at 1:02
  • Selecting a feature layer means finding one that will be used with the UniqueValueRenderer class to selectively color states based upon their name or their two character international code, such as DK or Germany.
    – Martlark
    Commented Mar 5, 2013 at 1:03

1 Answer 1

1

I found this layer works well.

https://services.arcgis.com/HuLaMAzbcrbWfOM8/ArcGIS/rest/services/Outline_of_world_countries/FeatureServer/0

field name is Country and the countries are their English names. Ie: Germany and Spain.

2
  • You may want to use the term "feature service" when referring to such data sources. A feature layer is the client side representation, while a feature service is the server side service providing the data.
    – blah238
    Commented Mar 5, 2013 at 4:45
  • So much to learn. Good thing you are here number 238 Blah.
    – Martlark
    Commented Mar 5, 2013 at 5:26

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.