Cannot get Template Picker to display in legend Pane

700
2
06-27-2013 07:48 PM
IanPeebles
Frequent Contributor
I have been working on building an application from the ground up.  I am really stuck with the template picker.  I am using a layout that enables the use of panes in the legend.  These panes will contain different tools such as legend, geocoding, editing, and find tools.  I can get the geocoding and find tools to work, but the template picker is not displaying correctly.  The frame for the template picker appears, but none of the feature layers show up.

Does anyone have any suggestions?  Attached is a copy of the code and a couple of screenshots.  Any feedback would greatly be appreciated.  Thanks.
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
The accordion pane that contains the editor needs to be active when you create the editor widget. There are several ways to solve this including creating the editor the first time a user clicks on the Editor pane or making the editor pane the selected pane then once you've created the widget set the legend pane to be selected. Here's a fiddle showing the second approach:

http://jsfiddle.net/g7MmP/
0 Kudos
by Anonymous User
Not applicable
Original User: ipeebles

Kelly,

Thank you so much for the sample.  This seems to work, but now I am having problems getting my legend to work properly.  In another application, I have been able to get a table of contents configured where you can turn off and on layers.  It is very similar to this sample:

http://gmaps-utility-gis.googlecode.com/svn-history/r354/trunk/agsjs/examples/toc.html

All the references are good, but cannot seem to get this to work correctly with the template picker.
0 Kudos