Hi all, I'm trying to get a URL to open up from a link in an attribute field when the feature is clicked on. I have added the following sample code taken from another post to MapManager.js and have gotten it to work with the sample links that came with it. var featureLayer = new FeatureLayer( "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3" ); map.addLayer(featureLayer); //Code for the specific URL to open in a new window featureLayer.on( 'click' , function (e){ var specific = e.graphic.attributes[ 'SpecificAttribute' ] window.open( "http://YourUrl.com/" +specific); }); I don't want to create a new feature layer, I would like to use an existing layer - how do I alter the code to do this? Also, will this work on a point feature as well as a polygon? Because right now it doesn't work on point features. I'm inexperienced with ArcGIS API for JavaScript but I'm trying to use online resources to find a solution so any help would be appreciated as I've spent a long time trying to get this to work!
... View more