AnsweredAssumed Answered

setRenderer and popup/info window

Question asked by matthewb on Oct 30, 2013
Latest reply on Oct 31, 2013 by zj_zou

I am using some of the JS API samples in a single web app and found that the applying a simple renderer to a polygon feature layer stops both popup and info windows from showing for that layer.

If I comment out:


the Popup or InfoWindowLite functions start working again (I tried both independently after first striking this). Also tried the render property in the feature layer constructor, but that did nothing at all. 

No errors in the browser console. My info template is very simple:

            var popup = Popup({                 titleInBody: false             }, domConstruct.create("div"));              var template = new PopupTemplate();             template.setTitle("<b>Name: ${Name}</b>");             template.setContent("Area (Ha): ${AreaHA:NumberFormat}");

So is my renderer:

            var myColor = new Color("yellow");             var myLine = new SimpleLineSymbol("solid", myColor, 1.5);             var mySymbol = new SimpleFillSymbol("solid", myLine, null);             var myRenderer = new SimpleRenderer(mySymbol);

I'm using AMD style with API v3.7 on top of Server 10.2.

I must be missing something simple!