1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>OpenLayers GML Layer Example</title>
4 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5 <link rel="stylesheet" href="style.css" type="text/css" />
6 <script src="../lib/OpenLayers.js"></script>
7 <script type="text/javascript">
14 map = new OpenLayers.Map('map');
15 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
16 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
18 map.zoomToExtent(new OpenLayers.Bounds(-3.922119,44.335327,4.866943,49.553833));
19 map.addLayer(new OpenLayers.Layer.GML("GML", "gml/polygon.xml"));
23 <body onload="init()">
24 <h1 id="title">GML Layer Example</h1>
29 Loads locally stored GML vector data on a basemap. Includes GML example file.
32 <div id="map" class="smallmap"></div>