Image ArcGIS MapServer

Example of an image ArcGIS layer.

This example shows how to use a dynamic ArcGIS REST MapService. This source type supports Map and Image Services. For dyamic ArcGIS services.

<!DOCTYPE html>
    <title>Image ArcGIS MapServer</title>
    <link rel="stylesheet" href="" type="text/css">
    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
    <script src=",Element.prototype.classList,URL"></script>

    <div id="map" class="map"></div>
      import Map from 'ol/Map.js';
      import View from 'ol/View.js';
      import {Tile as TileLayer, Image as ImageLayer} from 'ol/layer.js';
      import {OSM, ImageArcGISRest} from 'ol/source.js';

      var url = '' +

      var layers = [
        new TileLayer({
          source: new OSM()
        new ImageLayer({
          source: new ImageArcGISRest({
            ratio: 1,
            params: {},
            url: url
      var map = new Map({
        layers: layers,
        target: 'map',
        view: new View({
          center: [-10997148, 4569099],
          zoom: 4