Changeset 6730
- Timestamp:
- 03/31/08 02:19:43 (5 months ago)
- Files:
-
- trunk/openlayers/examples/kml/sundials.kml (modified) (2 diffs)
- trunk/openlayers/examples/sundials.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/examples/kml/sundials.kml
r6729 r6730 1041 1041 <Placemark> 1042 1042 <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> 1044 1044 1045 1045 <p>Image source:<a href="http://perso.orange.fr/cadrans.solaires/cadrans/originaux-monde.html">http://perso.orange.fr</a></p>]]></description> … … 1832 1832 <Placemark> 1833 1833 <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> 1835 1835 1836 1836 <p>Image credit:<a href="http://www.waymarking.com/waymarks/WM173Y">www.groundspeak.com</a></p>]]></description> trunk/openlayers/examples/sundials.html
r6729 r6730 7 7 #map { 8 8 width: 100%; 9 height: 100%;9 height: 80%; 10 10 border: 1px solid black; 11 11 } 12 .olPopup p { margin:0px; } 12 .olPopup p { margin:0px; font-size: .9em;} 13 .olPopup h2 { font-size:1.2em; } 13 14 </style> 14 15 <script src="../lib/OpenLayers.js"></script> … … 37 38 map.addControl(selectControl); 38 39 selectControl.activate(); 39 map.zoomTo MaxExtent();40 map.zoomToExtent(new OpenLayers.Bounds(68.774414,11.381836,123.662109,34.628906)); 40 41 } 41 42 function onPopupClose(evt) { … … 47 48 feature.geometry.getBounds().getCenterLonLat(), 48 49 new OpenLayers.Size(100,100), 49 "< div style='font-size:.8em'>"+feature.attributes.description+"</div>",50 "<h2>"+feature.attributes.name + "</h2>" + feature.attributes.description, 50 51 null, true, onPopupClose); 51 52 feature.popup = popup;
