Changeset 6568
- Timestamp:
- 03/20/08 02:49:20 (10 months ago)
- Files:
-
- sandbox/topp/geoext/examples/sld.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/topp/geoext/examples/sld.html
r6567 r6568 7 7 height: 475px; 8 8 border: 1px solid black; 9 background: #ccddff; 9 10 } 10 11 </style> … … 18 19 19 20 map = new OpenLayers.Map('map'); 20 var layer = new OpenLayers.Layer.WMS(21 "OpenLayers WMS",22 "http://labs.metacarta.com/wms/vmap0",23 {layers: 'basic'}24 );25 26 map.addLayer(layer);27 21 map.addControl(new OpenLayers.Control.LayerSwitcher()); 28 map.zoomToExtent(new OpenLayers.Bounds(143,-39,150,-45));29 22 30 23 OpenLayers.loadURL("tasmania/sld-tasmania.xml", null, null, complete); … … 57 50 "StateBoundaries", 58 51 "tasmania/TasmaniaStateBoundaries.xml", 59 {styleMap: new OpenLayers.StyleMap(getDefaultStyle(sld, "Land"))} 52 { 53 styleMap: new OpenLayers.StyleMap( 54 getDefaultStyle(sld, "Land") 55 ), 56 isBaseLayer: true 57 } 60 58 ), 61 59 new OpenLayers.Layer.GML( … … 82 80 83 81 map.addLayers(gmlLayers); 82 map.zoomToExtent(new OpenLayers.Bounds(143,-39,150,-45)); 84 83 85 84 var hover = new OpenLayers.Control.SelectFeature(
