OpenLayers OpenLayers

Changeset 6730

Show
Ignore:
Timestamp:
03/31/08 02:19:43 (5 months ago)
Author:
crschmidt
Message:

Add sizes to a couple of the sundial images, and zoom into show two of the
ones we hae sizes for to create a more compelling first impression.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/kml/sundials.kml

    r6729 r6730  
    10411041            <Placemark> 
    10421042                <name>Sundial, University of Science and Technology, Hong Kong</name> 
    1043                 <description><![CDATA[<p><img src="http://perso.orange.fr/cadrans.solaires/cadrans/images/Maes-hongkong.jpg"></p> 
     1043                <description><![CDATA[<p><img src="http://perso.orange.fr/cadrans.solaires/cadrans/images/Maes-hongkong.jpg" width="295" height="370"></p> 
    10441044 
    10451045<p>Image source:<a href="http://perso.orange.fr/cadrans.solaires/cadrans/originaux-monde.html">http://perso.orange.fr</a></p>]]></description> 
     
    18321832            <Placemark> 
    18331833                <name>Sundial, Tazacorte Beach ,La Palma island</name> 
    1834                 <description><![CDATA[<p><img src="http://img.groundspeak.com/waymarking/display/10cced19-2b34-482d-86c5-ee72fca9ab87.jpg"></p> 
     1834                <description><![CDATA[<p><img src="http://img.groundspeak.com/waymarking/display/10cced19-2b34-482d-86c5-ee72fca9ab87.jpg" width="400" height="300"></p> 
    18351835 
    18361836<p>Image credit:<a href="http://www.waymarking.com/waymarks/WM173Y">www.groundspeak.com</a></p>]]></description> 
  • trunk/openlayers/examples/sundials.html

    r6729 r6730  
    77        #map { 
    88            width: 100%; 
    9             height: 100%; 
     9            height: 80%; 
    1010            border: 1px solid black; 
    1111        } 
    12         .olPopup p { margin:0px; } 
     12        .olPopup p { margin:0px; font-size: .9em;} 
     13        .olPopup h2 { font-size:1.2em; } 
    1314    </style> 
    1415    <script src="../lib/OpenLayers.js"></script> 
     
    3738            map.addControl(selectControl); 
    3839            selectControl.activate();    
    39             map.zoomToMaxExtent(); 
     40            map.zoomToExtent(new OpenLayers.Bounds(68.774414,11.381836,123.662109,34.628906)); 
    4041        } 
    4142        function onPopupClose(evt) { 
     
    4748                                     feature.geometry.getBounds().getCenterLonLat(), 
    4849                                     new OpenLayers.Size(100,100), 
    49                                      "<div style='font-size:.8em'>"+feature.attributes.description+"</div>"
     50                                     "<h2>"+feature.attributes.name + "</h2>" + feature.attributes.description
    5051                                     null, true, onPopupClose); 
    5152            feature.popup = popup;