OpenLayers OpenLayers

Changeset 6568

Show
Ignore:
Timestamp:
03/20/08 02:49:20 (10 months ago)
Author:
tschaub
Message:

vector only

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/geoext/examples/sld.html

    r6567 r6568  
    77            height: 475px; 
    88            border: 1px solid black; 
     9            background: #ccddff; 
    910        } 
    1011    </style> 
     
    1819 
    1920            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); 
    2721            map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    28             map.zoomToExtent(new OpenLayers.Bounds(143,-39,150,-45)); 
    2922 
    3023            OpenLayers.loadURL("tasmania/sld-tasmania.xml", null, null, complete); 
     
    5750                    "StateBoundaries", 
    5851                    "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                    } 
    6058                ), 
    6159                new OpenLayers.Layer.GML( 
     
    8280             
    8381            map.addLayers(gmlLayers); 
     82            map.zoomToExtent(new OpenLayers.Bounds(143,-39,150,-45)); 
    8483             
    8584            var hover = new OpenLayers.Control.SelectFeature(