I'm new in openlayers OpenLayers. i'dI'd like to use mapservice of ArcGIS server 10 in open layers.I search and found examples of using an ArcGIS Server 9.3 Rest API layer for openlayersOpenLayers. I found OpenLayers.Layer.ArcGIS93RestOpenLayers.Layer.ArcGIS93Rest
instance but not ArcGIS 10 . How can iI use ArcGIS server 10 services in Openlayers? I wrote the below code . iI use ArcGIS server 10 and The REST is working right .
<!DOCTYPE html>
<html lang='en'>
<head>
<title>My OpenLayers Map</title>
<script type='text/javascript' src='OpenLayers.js'></script>
<script type='text/javascript'>
var map;
function init() {
map = new OpenLayers.Map('map_element',{});
var arcgis = new OpenLayers.Layer.ArcGIS93Rest("MyName","http://xxxxxxx/ArcGIS/rest/services/test/MapServer",
{layers: "show:0,1,2,3,4"});
map.addLayers([arcgis]);
}
</script>
</head>
<body onload='init();'>
<div id='map_element' style='width:1000px; height:500px;'>
</div>
</body>
</html>
Thanks for advance