Giving the examples a title makes them searchable. Consistent style makes things look less like a total hack job. The title header and shortdesc make our little example index thing work.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-04-13 08:22:55 +00:00
parent 4664edacc8
commit a247995670
+14 -11
View File
@@ -1,13 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<style type="text/css"> <title>OpenLayers Labeled Features Example</title>
#map { <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
width: 800px; <link rel="stylesheet" href="style.css" type="text/css" />
height: 475px; <script src="../lib/OpenLayers.js"></script>
border: 1px solid black;
}
</style>
<script src="../lib/OpenLayers.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var map; var map;
@@ -97,13 +93,20 @@
map.addLayer(vectorLayer); map.addLayer(vectorLayer);
vectorLayer.drawFeature(multiFeature); vectorLayer.drawFeature(multiFeature);
map.setCenter(new OpenLayers.LonLat(point.x, point.y), 5); map.setCenter(new OpenLayers.LonLat(point.x, point.y), 3);
vectorLayer.addFeatures([pointFeature, polygonFeature, multiFeature, nullFeature ]); vectorLayer.addFeatures([pointFeature, polygonFeature, multiFeature, nullFeature ]);
} }
</script> </script>
</head> </head>
<body onload="init()"> <body onload="init()">
<div id="map"></div> <h1 id="title">OpenLayers Labeled features example</h1>
<p>This example shows drawing simple vector features with a label</p> <div id="tags"></div>
<p id="shortdesc">
Label vector features with a text symbolizer.
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
This example shows drawing simple vector features with a label
</div>
</body> </body>
</html> </html>