1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>ArcIMS Thematic 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">
15 OpenLayers.ProxyHost = "proxy.cgi?url=";
17 map = new OpenLayers.Map('map');
19 query = {where: "FIPS_ID>100 AND FIPS_ID<200"};
23 lookupfield: 'FIPS_ID',
25 { lower: 100, upper: 120, symbol: { type: 'simplepolygon', fillcolor: '255,0,0' } },
26 { lower: 120, upper: 140, symbol: { type: 'simplepolygon', fillcolor: '255,255,0' } },
27 { lower: 140, upper: 160, symbol: { type: 'simplepolygon', fillcolor: '0,255,0' } },
28 { lower: 160, upper: 180, symbol: { type: 'simplepolygon', fillcolor: '0,255,255' } },
29 { lower: 180, upper: 200, symbol: { type: 'simplepolygon', fillcolor: '0,0,255' } }
40 serviceName: "OpenLayers_Sample",
45 layer = new OpenLayers.Layer.ArcIMS(
47 "http://sample.avencia.com/servlet/com.esri.esrimap.Esrimap",
52 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
53 map.addControl(new OpenLayers.Control.LayerSwitcher());
57 <body onload="init()">
58 <h1 id="title">ArcIMS Thematic Example</h1>
63 Shows the advanced use of OpenLayers using a thematic ArcIMS layer
66 <div id="map" class="smallmap"></div>
69 <p>This is an example of how to add an ArcIMS layer to an OpenLayers map.</p>
71 <p>Following the ArcXML convention to create a thematic (or chloropleth) map,
72 a layer definition is created with a query and a renderer to select portions
73 of the map data, and change their representation in the generated map tiles.</p>