Select to view content in your preferred language

Show attribute on the element in the map when selected

359
1
09-06-2011 04:43 AM
SantoshV
Emerging Contributor
Hi,
I have written a functionality where I use QueryTask to search for a road(Polyline)..

I have been able to locate the road and highlight it using a graphiclayer and QueryTask..
I want to know how I can show the attribute RoadName on the polyline element parallel to the geometry....
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can create a similar control as FeatureDataForm or use FeatureLayer instead of GraphicsLayer + QueryTask, bind FeatureDataForm Map and FeatureLayer properties and set FeatureDataForm GraphicSource property on selection.

When you create your own control, post# 2 on this thread might help: http://forums.arcgis.com/threads/20521-How-to-set-some-attributes-readonly-for-FeatureDataForm.
0 Kudos