[Users] Order of items in GeoExt.LayerContainer

Andrew Stewart Andrew.Stewart at reddeer.ca
Wed Nov 17 00:10:06 CET 2010


I am having a problem with the ordering of items being loaded into my GeoExt.LayerContainer and added to a layertree. Not sure why but with the below code the layer DA Label is always added on top of everything else even though I clearly have defined it in between everything. Does the ordering of layers depend on something else entirely? I am even adding the layer last to my map but it still doesn't have any affect, appreciate any assistance.

   loader:
        {
            filter: function(record)
            {
                if (record.data.title == 'Neighbourhood Label' || record.data.title == 'Overview Streets' || record.data.title == 'Quadrant Streets' || record.data.title == 'Neighbourhood Streets' || record.data.title == 'Block Streets' || record.data.title == 'Proposed Streets' || record.data.title == 'DA Label' || record.data.title == 'Address Label (Overview)' || record.data.title == 'Address Label (Detail)')
                    return true;
            }
            }
        });






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101116/303c54d4/attachment-0001.htm 


More information about the Users mailing list