smas1 / geoext-viewer

Automatically exported from code.google.com/p/geoext-viewer
GNU General Public License v3.0
0 stars 0 forks source link

Timeslider incompatible with layertree Ordering #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In my layertree, the timeslider only works if I comment out the "ordering". If 
I don't then I get an error:

------------

TypeError: Heron.App.topComponent is undefined

var treePanel = Heron.App.topComponent.findByType('hr_layertreepanel')[0];

LayerTreePanel.js (line 477)

------------

However, if I add "ordering: 'TopBottom'," to the timeslider example, the 
example continues to work. Although in this case the ordering is ignored - 
layers are displayed in a random order rather than the layertree order.

Original issue reported on code.google.com by jonathan...@warwickshire.gov.uk on 12 Jun 2014 at 11:23

Attachments:

GoogleCodeExporter commented 9 years ago
I will take a look at this.

Original comment by rinke.he...@gmail.com on 12 Jun 2014 at 11:32

GoogleCodeExporter commented 9 years ago
To check whether we have conflicts I combined the layertreeordering and 
timeslider examples (attached the files).
Everything works fine, I can move layers and the ordering is set as it should.
I can also drag the slider etc. to change the features displayed in the map.

As in your case Heron.App.topComponent is undefined, I guess something went 
wrong during loading, do you see any errors before in the debug console?

Original comment by rinke.he...@gmail.com on 13 Jun 2014 at 8:29

Attachments:

GoogleCodeExporter commented 9 years ago
The above answer is supposed to be sufficient, status set to done.

Original comment by rinke.he...@gmail.com on 30 Jun 2014 at 2:55