|
Revision 7095, 1.2 kB
(checked in by tschaub, 5 months ago)
|
giving examples some style
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 2 |
<head> |
|---|
| 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"> |
|---|
| 8 |
var lon = 5; |
|---|
| 9 |
var lat = 40; |
|---|
| 10 |
var zoom = 5; |
|---|
| 11 |
var map, layer; |
|---|
| 12 |
|
|---|
| 13 |
function init(){ |
|---|
| 14 |
map = new OpenLayers.Map('map'); |
|---|
| 15 |
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", |
|---|
| 16 |
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); |
|---|
| 17 |
map.addLayer(layer); |
|---|
| 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")); |
|---|
| 20 |
} |
|---|
| 21 |
</script> |
|---|
| 22 |
</head> |
|---|
| 23 |
<body onload="init()"> |
|---|
| 24 |
<h1 id="title">GML Layer Example</h1> |
|---|
| 25 |
|
|---|
| 26 |
<div id="tags"></div> |
|---|
| 27 |
|
|---|
| 28 |
<p id="shortdesc"> |
|---|
| 29 |
Loads locally stored GML vector data on a basemap. Includes GML example file. |
|---|
| 30 |
</p> |
|---|
| 31 |
|
|---|
| 32 |
<div id="map" class="smallmap"></div> |
|---|
| 33 |
|
|---|
| 34 |
<div id="docs"></div> |
|---|
| 35 |
</body> |
|---|
| 36 |
</html> |
|---|