On Jun 17, 2011, at 5:45 PM, ext Bob Basques wrote: > All, > > Playing around with my first (official) Openlayers Viewer. > http://pwultra5.ci.stpaul.mn.us/ol/ol.03.html > > A couple of questions: > > 1.) How do I add in a Legend Graphic for each layer to the LayerSwitcher > from a MapServer CGI call? > For example, here is the call to a legend for the Street centerlines: > http://gis.ci.stpaul.mn.us/datasets/SHP/METC/TLG/CENTERLINES_TLG/tlg_googlish1_public.map?mapext=524489.6712328767%20136826.90753424657%20618818.3287671233%20172992.09246575343&mapsize=1072%20411&mode=legend > I did find some examples for WMS, but they didn't seem to be what I was > looking for.
You'll probably need to write your own LayerSwitcher. We don't have any supported way of doing this that I'm aware of; there are a few hacks out there that people have done, but I don't think we've integrated them into the LayerSwitcher in trunk. > 2.) How do I set the Layer Switcher to be activated (displayed) by default > (vs closed on startup)? http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html#OpenLayers.Control.LayerSwitcher.maximizeControl > bobb > _______________________________________________ > Dev mailing list > d...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev