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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6730 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-03-31 06:19:43 +00:00
parent a53dbf6cda
commit 0f35350920
2 changed files with 7 additions and 6 deletions

View File

@@ -1040,7 +1040,7 @@ http://www.bigwaste.com/photos/az/sundial/]]></description>
</Placemark>
<Placemark>
<name>Sundial, University of Science and Technology, Hong Kong</name>
<description><![CDATA[<p><img src="http://perso.orange.fr/cadrans.solaires/cadrans/images/Maes-hongkong.jpg"></p>
<description><![CDATA[<p><img src="http://perso.orange.fr/cadrans.solaires/cadrans/images/Maes-hongkong.jpg" width="295" height="370"></p>
<p>Image source:<a href="http://perso.orange.fr/cadrans.solaires/cadrans/originaux-monde.html">http://perso.orange.fr</a></p>]]></description>
<LookAt>
@@ -1831,7 +1831,7 @@ California</name>
</Placemark>
<Placemark>
<name>Sundial, Tazacorte Beach ,La Palma island</name>
<description><![CDATA[<p><img src="http://img.groundspeak.com/waymarking/display/10cced19-2b34-482d-86c5-ee72fca9ab87.jpg"></p>
<description><![CDATA[<p><img src="http://img.groundspeak.com/waymarking/display/10cced19-2b34-482d-86c5-ee72fca9ab87.jpg" width="400" height="300"></p>
<p>Image credit:<a href="http://www.waymarking.com/waymarks/WM173Y">www.groundspeak.com</a></p>]]></description>
<LookAt>

View File

@@ -6,10 +6,11 @@
<style type="text/css">
#map {
width: 100%;
height: 100%;
height: 80%;
border: 1px solid black;
}
.olPopup p { margin:0px; }
.olPopup p { margin:0px; font-size: .9em;}
.olPopup h2 { font-size:1.2em; }
</style>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
@@ -36,7 +37,7 @@
map.addControl(selectControl);
selectControl.activate();
map.zoomToMaxExtent();
map.zoomToExtent(new OpenLayers.Bounds(68.774414,11.381836,123.662109,34.628906));
}
function onPopupClose(evt) {
selectControl.unselect(selectedFeature);
@@ -46,7 +47,7 @@
popup = new OpenLayers.Popup.FramedCloud("chicken",
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(100,100),
"<div style='font-size:.8em'>"+feature.attributes.description+"</div>",
"<h2>"+feature.attributes.name + "</h2>" + feature.attributes.description,
null, true, onPopupClose);
feature.popup = popup;
map.addPopup(popup);