services:
  tms:
  wms:
    featureinfo_types: ['json']

layers:
  - name: app2_layer
    title: ArcGIS Cache Layer
    sources: [app2_cache]
  - name: app2_with_layers_layer
    title: ArcGIS Cache Layer
    sources: [app2_with_layers_cache]
  - name: app2_with_layers_fi_layer
    title: ArcGIS Cache Layer
    sources: [app2_with_layers_fi_cache]
  - name: app2_wrong_url_layer
    title: ArcGIS Cache Layer
    sources: [app2_wrong_url_cache]

caches:
  app2_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [app2_source]
  app2_with_layers_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [app2_with_layers_source]
  app2_with_layers_fi_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [app2_with_layers_fi_source]
  app2_wrong_url_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [app2_wrong_url_source]

sources:
  app2_source:
    type: arcgis
    req:
      url: http://localhost:42423/arcgis/rest/services/ExampleLayer/ImageServer
  app2_with_layers_source:
    type: arcgis
    req:
      layers: show:0,1
      url: http://localhost:42423/arcgis/rest/services/ExampleLayer/MapServer
  app2_with_layers_fi_source:
    type: arcgis
    opts:
      featureinfo: true
      featureinfo_tolerance: 10
      featureinfo_return_geometries: true
    supported_srs: ['EPSG:3857']
    req:
      layers: show:1,2,3
      url: http://localhost:42423/arcgis/rest/services/ExampleLayer/MapServer
  app2_wrong_url_source:
    type: arcgis
    req:
      url: http://localhost:42423/arcgis/rest/services/NonExistentLayer/ImageServer
