FAQ Database Discussion Community

Filter (no display) layers in GeoExt.LegendPanel using LIKE operator [closed]

This works to avoid Basemap layers such as Google Maps and overlays such as WMS to appear in the GeoExt Legend Panel: var legendPanel = new GeoExt.LegendPanel({ border: false, filter: function(record){ if(!(record.getLayer().isBaseLayer) && (record.getLayer() instanceof OpenLayers.Layer.WMS)){ return true; } } }); The problem is that I need to filter (ie....