Changeset 1439
- Timestamp:
- 09/13/06 04:25:40 (2 years ago)
- Files:
-
- trunk/openlayers/examples/BaseLayers.html (modified) (1 diff)
- trunk/openlayers/examples/popups.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/BaseLayers.html
r1438 r1439 5 5 #map { 6 6 width: 100%; 7 height: 100%;7 height: 512px; 8 8 border: 1px solid black; 9 9 background-color: blue; trunk/openlayers/examples/popups.html
r1438 r1439 4 4 <style type="text/css"> 5 5 #map { 6 width: 400px;7 height: 400px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 25 25 26 26 } 27 28 function bar(e) { 29 alert("body"); 30 } 31 function foo(e) { 32 alert("yo"); 33 return true; 34 } 35 27 36 28 function changer() { 37 29 popup.setBackgroundColor("red"); … … 83 75 popup.setBackgroundColor("yellow"); 84 76 popup.setOpacity(0.7); 85 // popup.events.register("mousedown", popup, onPopupMouseDown);86 77 markers.map.addPopup(popup); 87 78 } else { … … 123 114 <body onload="init()"> 124 115 <div id="map"></div> 125 <div id="foo"style="background-color:purple" onclick="add()"> click to add Popup to map</div>116 <div style="background-color:purple" onclick="add()"> click to add Popup to map</div> 126 117 <div style="background-color:green" onclick="addMarker()"> click to add a Marker with an AnchoredBubble popup</div> 127 118 <div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div> 128 119 <div style="background-color:red" onclick="remove()"> click to remove the popup from map</div> 129 120 <div style="background-color:grey" onclick="removelayer()"> click to remove the markers layer</div> 130 <div id="yar" style="background-color:orange" onclick="alert(marker.onScreen())"> marker.onscreen()?</div> 131 <div id="ar" style="background-color:yellow"> 132 <a href='http://www.somethingconstructive.net' target='_blank'>click me</a> 133 </div> 121 <div style="background-color:orange" onclick="alert(marker.onScreen())"> marker.onscreen()?</div> 122 <div style="background-color:yellow" onclick="destroy()"> click to destroy the popup from map</div> 134 123 </body> 135 124 </html>
