OpenLayers OpenLayers

Changeset 549

Show
Ignore:
Timestamp:
06/07/06 14:59:34 (3 years ago)
Author:
euzuro
Message:

more demo work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/popups.html

    r518 r549  
    1818            map = new OpenLayers.Map('map'); 
    1919            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",  
     20                "http://octo.metacarta.com/cgi-bin/mapserv", 
     21                {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} ); 
     22                 
     23            map.addLayer(layer); 
     24 
     25            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS2",  
    2026                "http://octo.metacarta.com/cgi-bin/mapserv", 
    2127                {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} ); 
     
    104110        } 
    105111 
     112        function removelayer() { 
     113            layer.destroy(); 
     114//            map.removeLayer(markers); 
     115        } 
     116 
    106117 
    107118        // --> 
     
    114125    <div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div> 
    115126    <div style="background-color:red" onclick="remove()"> click to remove the popup from map</div> 
     127    <div style="background-color:grey" onclick="removelayer()"> click to remove the markers layer</div> 
     128    <div style="background-color:orange" onclick="alert(marker.onScreen())"> marker.onscreen()?</div> 
     129    <div style="background-color:yellow" onclick="destroy()"> click to destroy the popup from map</div> 
    116130  </body> 
    117131</html>