Skip to main content

How can i use ArcGIS server 10 mapservices in openlayersOpenLayers2?

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

How can i use ArcGIS server 10 mapservices in openlayers?

I'm new in openlayers . i'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 openlayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can i use ArcGIS server 10 services in Openlayers? I wrote the below code . i use ArcGIS server 10 and The REST is working right .

 
<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

How can i use ArcGIS server 10 mapservices in OpenLayers2?

I'm new in OpenLayers. I'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 OpenLayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can I use ArcGIS server 10 services in Openlayers? I wrote the below code . I 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>
added 920 characters in body
Source Link
BBG_GIS
  • 5.8k
  • 5
  • 45
  • 88

I'm new in openlayers . i'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 openlayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can i use ArcGIS server 10 services in Openlayers? I wrote the below code . i use ArcGIS server 10 and The REST is working right .

<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

I'm new in openlayers . i'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 openlayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can i use ArcGIS server 10 services in Openlayers?

Thanks for advance

I'm new in openlayers . i'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 openlayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can i use ArcGIS server 10 services in Openlayers? I wrote the below code . i use ArcGIS server 10 and The REST is working right .

<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

Source Link
BBG_GIS
  • 5.8k
  • 5
  • 45
  • 88

How can i use ArcGIS server 10 mapservices in openlayers?

I'm new in openlayers . i'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 openlayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can i use ArcGIS server 10 services in Openlayers?

Thanks for advance