1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
4 <link rel="stylesheet" href="style.css" type="text/css" />
5 <script src="../lib/OpenLayers.js"></script>
6 <script type="text/javascript">
13 map = new OpenLayers.Map('map');
14 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
15 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
17 map.addLayer(new OpenLayers.Layer.GML("KML", "kml/lines.kml",
19 format: OpenLayers.Format.KML,
22 extractAttributes: true,
26 map.zoomToExtent(new OpenLayers.Bounds(-112.306698,36.017792,-112.03204,36.18087));
30 <body onload="init()">
31 <h1 id="title">KML Layer Example</h1>
36 Demonstrates loading and displaying a KML file on top of a basemap.
39 <div id="map" class="smallmap"></div>