]> dev.renevier.net Git - syp.git/blob - openlayers/examples/arcims.html
move templates to a specific directory
[syp.git] / openlayers / examples / arcims.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3     <title>ArcIMS 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 = 0;
9         var lat = 0;
10         var zoom = 1;
11         var map, layer;
12
13         function init(){
14             OpenLayers.ProxyHost = "proxy.cgi?url=";
15             
16             map = new OpenLayers.Map( 'map' );
17             
18             var options = {
19               serviceName: "OpenLayers_Sample",
20               async: true
21             };
22             
23             layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
24                     "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap", options );
25             map.addLayer(layer);
26
27             map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
28             map.addControl( new OpenLayers.Control.LayerSwitcher() );
29         }
30     </script>
31   </head>
32   <body onload="init()">
33     <h1 id="title">ArcIMS Example</h1>
34
35     <div id="tags">
36     </div>
37     <p id="shortdesc">
38         Shows the basic use of OpenLayers using an ArcIMS layer
39     </p>
40
41     <div id="map" class="smallmap"></div>
42
43     <div id="docs">
44         This is an example of how to add an ArcIMS layer to the OpenLayers window.
45     </div>
46
47   </body>
48 </html>
49
50
51
52