[OpenLayers-Users] Openlayers Layer.Switcher Problem with Classes ?!

fLaNsch at gmx.de fLaNsch at gmx.de
Thu Oct 1 13:35:22 EDT 2009


Hi list, 

Im running Openlayers 2.8, an umn mapserver with a WMS-Mapfile including 1 Layer with many different classes. Like:
CLASS
EXPRESSION "fast_food"
  STYLE
  SYMBOL 'fastfood'
    SIZE 6
    MINSIZE 6
    MAXSIZE 25    
  END
END
CLASS
EXPRESSION "pub"
  STYLE
  SYMBOL 'pub'
    SIZE 6
    MINSIZE 6
    MAXSIZE 25    
  END
END
... so on

Now, Im looking for an Openlayers function such as Layer.Switcher.Classes or something like that, to turn my WMS-Layer-Classes on/off. Because at the moment im only allowed to switch the hole WMS-Layer. So all 30 Layer-Classes are displayed at the same time with the result that the map is totally overloaded. If anyone knows how to handle, pls help me :).
Thanks!! 
Best regards, Simon
 
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Users mailing list