Currently I am using usa_st shapefile that is used in many the infragistics examples for creating the USA by state. I want to call a service that has information by State, then have the map color by those values retrieved in the service. Is this possible? are there examples?
Hello,
I can suggest you see this sample from our online documentation:
http://samples.infragistics.com/sllob/map/sl/#/binding-to-wcf-data
where I believe the thing you want to achieve is shown.
Hope this helps you.
I see that the array index can be changed to get a different color, but I still have to mannually setup for example 90-100 is green, 80-90 is yellow, 70-80 is orange, etc... I am looking to have the system do that as it can through the xaml side, after I have set up the elements value through a service in the codebehind.
If you notice I added different type of colors (gradiant, plain, etc.) you can change it by chnaging the array index in the LayerImported event.
Hi,
Thank you for the information, your sample code does create gradiant colors on the map. However, I am trying to color each state based on the datamapped "value" starting with a light color and finishing with a dark color as the number increases.
Thank you for your post. I have been looking into it and I created a sample project for you, where I showed you hot to apply colors to the MapLayers. Once you get the Service call and retrieve your data, you can change the map colors.