[OpenLayers-Users] Add a new label to the legend in addition to
"BaseLayer" and "Overlays"
BMcBride
bmcbride at chacompanies.com
Mon Jun 7 09:58:57 EDT 2010
You can override the Layer Switcher defaults by inserting the following js
snippet before you initiate your map...
OpenLayers.Lang.en={'overlays':"My Overlays<br>",'baseLayer':"Base
Layers<br>"};
If you want to customize your layer controls further, you'll probably want
to write your own control using getVisibility and setVisibility- see
http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.getVisibility
http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.getVisibility
.
You may want to also consider using GeoExt, which supports "Tree Nodes"- see
example here: http://dev.geoext.org/trunk/geoext/examples/tree.html
http://dev.geoext.org/trunk/geoext/examples/tree.html .
-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Add-a-new-label-to-the-legend-in-addition-to-BaseLayer-and-Overlays-tp5148133p5149122.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list