~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/examples/georss-markers.html

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml">
 
2
  <head>
 
3
    <title>OpenLayers GeoRSS Marker 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 map, layer;
 
9
 
 
10
        OpenLayers.ProxyHost = "/proxy/?url=";
 
11
        function init(){
 
12
            map = new OpenLayers.Map('map', {maxResolution:'auto'});
 
13
            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
 
14
                "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
 
15
            map.addLayer(layer);
 
16
            map.setCenter(new OpenLayers.LonLat(0, 0), 0);
 
17
            map.addControl(new OpenLayers.Control.LayerSwitcher());
 
18
            var newl = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml');
 
19
            map.addLayer(newl);
 
20
            var yelp = new OpenLayers.Icon("http://openlayers.org/~crschmidt/yelp.png", new OpenLayers.Size(20,29));
 
21
            var newl = new OpenLayers.Layer.GeoRSS( 'Yelp GeoRSS', 'yelp-georss.xml', {'icon':yelp});
 
22
            map.addLayer(newl);
 
23
        }
 
24
    </script>
 
25
  </head>
 
26
  <body onload="init()">
 
27
    <h1 id="title">GeoRSS Marker Example</h1>
 
28
 
 
29
    <div id="tags"></div>
 
30
 
 
31
    <p id="shortdesc">
 
32
        Demonstrate loading a GeoRSS feed using the GeoRSS parser.
 
33
    </p>
 
34
 
 
35
    <div id="map" class="smallmap"></div>
 
36
 
 
37
    <div id="docs"></div>
 
38
  </body>
 
39
</html>