OpenLayers OpenLayers

Changeset 1439

Show
Ignore:
Timestamp:
09/13/06 04:25:40 (2 years ago)
Author:
euzuro
Message:

did not mean to commit modifications to examples in r1438. Have set them back to how they were but for one small change to the popups.html example, which I give a hyperlink inside it to show off the new functionality

Files:

Legend:

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

    r1438 r1439  
    55        #map { 
    66            width: 100%; 
    7             height: 100%
     7            height: 512px
    88            border: 1px solid black; 
    99            background-color: blue; 
  • trunk/openlayers/examples/popups.html

    r1438 r1439  
    44    <style type="text/css"> 
    55        #map { 
    6             width: 400px; 
    7             height: 400px; 
     6            width: 512px; 
     7            height: 512px; 
    88            border: 1px solid black; 
    99        } 
     
    2525             
    2626        } 
    27          
    28         function bar(e) { 
    29             alert("body"); 
    30         } 
    31         function foo(e) { 
    32             alert("yo"); 
    33             return true; 
    34         } 
    35          
     27 
    3628        function changer() { 
    3729            popup.setBackgroundColor("red"); 
     
    8375                popup.setBackgroundColor("yellow"); 
    8476                popup.setOpacity(0.7); 
    85 //                popup.events.register("mousedown", popup, onPopupMouseDown); 
    8677                markers.map.addPopup(popup); 
    8778            } else { 
     
    123114  <body onload="init()"> 
    124115    <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> 
    126117    <div style="background-color:green" onclick="addMarker()"> click to add a Marker with an AnchoredBubble popup</div> 
    127118    <div style="background-color:blue" onclick="changer()"> click to modify popup's attributes</div> 
    128119    <div style="background-color:red" onclick="remove()"> click to remove the popup from map</div> 
    129120    <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>  
    134123  </body> 
    135124</html>