Select to view content in your preferred language

Feature layer publish, Display in WPF app

4297
30
06-13-2010 10:55 PM
xariaD
by
Occasional Contributor
We have a feature layer, which we intend to publish using ArcGIS Server.
We have a WPF application which displays maps. This feature layer is to be overlayed upon the map.
The feature layers represents certain units installed at particular locations. We have the co-ordinates of these units.

The units have different state eg Enabled/disabled. We wish to represent the enabled units with different icon and disabled with different icon. Obviously the state is obtained dynamically. How to achieve this?
Also, Upon clicking these units on the map some function should be performed.
How do we determine which unit has been clicked?
0 Kudos
30 Replies
xariaD
by
Occasional Contributor
Okay I have got it to work partially.
Specified co-ordinate for the map got the Spatial Reference.
I created a new WPF app and added map, dynamic layer, feature layer. Set rotation to 90 in Map loaded event.
And it displays perfectly.

Now how to change the color of a particular polygon at runtime?


An 'UniqueValueRenderer' which allows to change the symbol depending on the value of a field should be what you are looking for.


How to use this UniqueValue Renderer?
0 Kudos