Select to view content in your preferred language

Setting opacity in esri.layers.FeatureLayer makes info window not function

1038
0
01-11-2011 12:02 PM
DeianMoore
Deactivated User
I have set an info window to pop up when a user clicks on a watershed.  The info window includes a web link to download a pdf.  When I add an opacity level of .5 to the code, the info window only displays "undefined" when clicked.  Any ideas on what might be wrong with my code?

var featureLayer = new esri.layers.FeatureLayer("http://184.73.191.150/ArcGIS/rest/services/WS_Assessment/MapServer/1", {"opacity":0.5}, {
          mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
          outFields: ["*"]
        });

        dojo.connect(featureLayer, 'onClick', function(evt) {
    var g = evt.graphic
   
          //populate the info window
          map.infoWindow.setTitle(g.attributes.Name);
    map.infoWindow.setContent("</b><br /><a target='_blank' href=http://www.esenvironmental.com/" + (g.attributes.ReportNew1) + ">Download Report</a>");
          map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
        });


        map.infoWindow.resize(200, 100);
        map.addLayer(featureLayer);
0 Kudos
0 Replies