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?

  • 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 Mar 5 '13 at 0:49
  • Also have a look at the tag wiki for the feature-layer tag which I just added. – blah238 Mar 5 '13 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 Mar 5 '13 at 1:01
  • Also have a look at the Use a unique value renderer sample. – blah238 Mar 5 '13 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 Mar 5 '13 at 1:03

I found this layer works well.


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

| improve this answer | |
  • 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 Mar 5 '13 at 4:45
  • So much to learn. Good thing you are here number 238 Blah. – Martlark Mar 5 '13 at 5:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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