Select to view content in your preferred language

Highlight point layer from within an Infowindow

526
1
08-03-2010 04:58 AM
simonmiles
New Contributor II
background -

i've created a infowindow that will tell me election based info on a polygon layer,

var title = attr.PD_NAME;
        var content = "<b>Constit. :</b> " + attr.CONSTIT
                   + "<br /><b>Polling station :</b> <br />" + attr.POL_STAT
                   + "<br /><b>Web info :</b> <a href=" + attr.WEB +" target=_blank ;'>"+ attr.PD_NAME+"</a>"
               + "<br /><b>Ward : </b> " + attr.WARD;


I was wondering if it was possible from within that infowindow to add some code where by I could click on the "Polling station" attribute and within the same api, the polling station point would be highlighted on the map?

Thanks
0 Kudos
1 Reply
KellyHutchins
Esri Frequent Contributor
The Identify Task sample from the help, shows how to highlight a feature from an info window. http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/identify/identify_drilldown.html
0 Kudos