You need to log in before you can comment on or make changes to this bug.
There is a bug in the mySearch javascript function when you have the following kind of capabilities structure: + nested2 (121) + tdn (122) + top10huizen (123) + Gemeentes0 (124) + top10lijnen (125) + Gemeentes1 (126) Layer Gemeentes1, with layer_id 126, is not found by the function, and so no preview is shown of that layer. You can test this against: http://www.vz.geodan.nl:1111/cgi-bin/44/mapserv.exe?map=/ms4w/apps/general/map/nested2.map&
I suggest the following for the mySearch function instead of the current implementation: function mySearch( sr, value ) { var i; var result = null; if (sr.GetValue( "layer_id" ) == value) { result = sr; } else { if (sr.maoChildren.length > 0) { for (i=0; result == null && i < sr.maoChildren.length; i++) { result = mySearch( sr.maoChildren[i], value ); } } } return result; }
Julien/Paul, are you guys okay with me fixing this in 2.2?
Sure! Please do!
Fixed in CVS version only.