]> dev.renevier.net Git - syp.git/blob - openlayers/tests/manual/arcims-2117.html
initial commit
[syp.git] / openlayers / tests / manual / arcims-2117.html
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3     <title>ArcIMS Test Ticket #2117</title>
4     <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
5     <link rel="stylesheet" href="../../examples/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 = "../../examples/proxy.cgi?url=";
15             
16             map = new OpenLayers.Map( 'map' );
17             
18             var options = {
19               serviceName: "OpenLayers_Sample",
20               async: true,
21                                                         layers: [{
22                                                                 id:1,
23                                                                 visible:'true',
24                                                                 /*query:{
25                                                                         where: '1=1',
26                                                                         spatialfilter: true
27                                                                 },*/
28                                                                 renderer:{
29                                                                         type: 'valuemaplabel',
30                                                                         lookupfield: 'FIPS_ID',
31                                                                         labelfield: 'FIPS_CNTRY',
32                                                                         exacts:[{
33                                                                                 value: '227',
34                                                                                 symbol: {
35                                                                                         type: 'text',
36                                                                                         antialiasing: 'true',
37                                                                                         interval: 6,
38                                                                                         blockout: '255,255,255',
39                                                                                         font: 'Arial',
40                                                                                         fontcolor: '0,0,0',
41                                                                                         fontsize: 11,
42                                                                                         transparency: 0.7
43                                                                                 }
44                                                                         },{
45                                                                                 value: '150',
46                                                                                 symbol: {
47                                                                                         type: 'text',
48                                                                                         antialiasing: 'true',
49                                                                                         interval: 6,
50                                                                                         blockout: '255,255,255',
51                                                                                         font: 'Arial',
52                                                                                         fontcolor: '0,0,0',
53                                                                                         fontsize: 11,
54                                                                                         transparency: 0.7
55                                                                                 }
56                                                                         },{
57                                                                                 value: '75',
58                                                                                 symbol: {
59                                                                                         type: 'text',
60                                                                                         antialiasing: 'true',
61                                                                                         interval: 6,
62                                                                                         blockout: '255,255,255',
63                                                                                         font: 'Arial',
64                                                                                         fontcolor: '0,0,0',
65                                                                                         fontsize: 11,
66                                                                                         transparency: 0.7
67                                                                                 }
68                                                                         }]
69                                                                 }
70                                                         }]
71             };
72             
73             layer = new OpenLayers.Layer.ArcIMS( "Global Sample Map",
74                     "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap", options );
75             map.addLayer(layer);
76
77             map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
78             map.addControl( new OpenLayers.Control.LayerSwitcher() );
79         }
80     </script>
81   </head>
82   <body onload="init()">
83     <h1 id="title">ArcIMS Test Ticket #2117</h1>
84
85     <div id="tags">
86     </div>
87     <p id="shortdesc">
88         <a href="http://trac.openlayers.org/ticket/2117">Testing ticket #2117</a>
89     </p>
90
91     <div id="map" class="smallmap"></div>
92
93     <div id="docs">
94         This is an example of a bug in the ArcXML format writer.
95          If you don't see a map, it's broken.
96     </div>
97
98   </body>
99 </html>
100
101
102
103