AnsweredAssumed Answered

Problems with TOC or map

Question asked by Schlomm_1 on Oct 14, 2013
Latest reply on Aug 12, 2015 by xylochic627
I have a wired problem in my map.
1.) Either I can use NLiu's TOC, but the map doesn't update when I zoom. I have to pan the to update the map. Also I can see the lines for the editor and measurement widget. These are working, but I don't see any lines.
2.) Or I can have a map, where the map updates on zooming without panning. There I can also see the line features of measurement and editor tool. But I can't use nliu's TOC. The TOC doesn't display and all layers are added.

I assume that this error is caused by a wrong placement of
map.on("layers-add-result", initEditor);
because this is more or less the difference between both versions.

Here are the jsfiddles:
No refresh of map with working TOC, but no lines of editor and measurement tool (1):

Refresh of TOC with working measurement and editor tool, but no toc (2):

Would be awesome, if anybody could help me.
Thanks in advance,