add LayerSwitcher control. Currently, when added, this will simply loop through all the map layers, display a div (with text in it) which allows you tu turn the layer on or off. Layer visibility is a new concept in Layer.js, including a getter and setter, which uses the style.visibility prop to change the status of the layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@31 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+2
-1
@@ -45,7 +45,8 @@ catch(e){
|
||||
"OpenLayers/Layer/Grid.js",
|
||||
"OpenLayers/Layer/WMS.js",
|
||||
"OpenLayers/Control.js",
|
||||
"OpenLayers/Control/PanZoom.js"
|
||||
"OpenLayers/Control/PanZoom.js",
|
||||
"OpenLayers/Control/LayerSwitcher.js"
|
||||
); // etc.
|
||||
|
||||
var allScriptTags = "";
|
||||
|
||||
Reference in New Issue
Block a user