1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
---|
6 | <meta name="apple-mobile-web-app-capable" content="yes"> |
---|
7 | <title>OpenLayers GeoRSS Marker Example</title> |
---|
8 | <link rel="stylesheet" href="../theme/default/style.css" type="text/css"> |
---|
9 | <link rel="stylesheet" href="style.css" type="text/css"> |
---|
10 | <script src="../lib/OpenLayers.js"></script> |
---|
11 | <script type="text/javascript"> |
---|
12 | var map, layer; |
---|
13 | |
---|
14 | OpenLayers.ProxyHost = "/proxy/?url="; |
---|
15 | function init(){ |
---|
16 | map = new OpenLayers.Map('map', {maxResolution:'auto'}); |
---|
17 | layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", |
---|
18 | "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); |
---|
19 | map.addLayer(layer); |
---|
20 | map.setCenter(new OpenLayers.LonLat(0, 0), 0); |
---|
21 | map.addControl(new OpenLayers.Control.LayerSwitcher()); |
---|
22 | var newl = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml'); |
---|
23 | map.addLayer(newl); |
---|
24 | var yelp = new OpenLayers.Icon("http://www.openlayers.org/images/OpenLayers.trac.png", new OpenLayers.Size(49,44)); |
---|
25 | var newl = new OpenLayers.Layer.GeoRSS( 'Yelp GeoRSS', 'yelp-georss.xml', {'icon':yelp}); |
---|
26 | map.addLayer(newl); |
---|
27 | } |
---|
28 | </script> |
---|
29 | </head> |
---|
30 | <body onload="init()"> |
---|
31 | <h1 id="title">GeoRSS Marker Example</h1> |
---|
32 | |
---|
33 | <div id="tags"> |
---|
34 | georss, style, styling, marker, flickr, image |
---|
35 | </div> |
---|
36 | |
---|
37 | <p id="shortdesc"> |
---|
38 | Demonstrate loading a GeoRSS feed using the GeoRSS parser. |
---|
39 | </p> |
---|
40 | |
---|
41 | <div id="map" class="smallmap"></div> |
---|
42 | |
---|
43 | <div id="docs"></div> |
---|
44 | </body> |
---|
45 | </html> |
---|