Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 layer so that I can use the UniqueValueRenderer to make the states pretty colors according to their statistics.

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

share|improve this question
    
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
show 6 more comments

1 Answer 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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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