Changeset 549
- Timestamp:
- 06/07/06 14:59:34 (3 years ago)
- Files:
-
- trunk/openlayers/examples/popups.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/popups.html
r518 r549 18 18 map = new OpenLayers.Map('map'); 19 19 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", 20 26 "http://octo.metacarta.com/cgi-bin/mapserv", 21 27 {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} ); … … 104 110 } 105 111 112 function removelayer() { 113 layer.destroy(); 114 // map.removeLayer(markers); 115 } 116 106 117 107 118 // --> … … 114 125 <div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div> 115 126 <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> 116 130 </body> 117 131 </html>
