bathnes:
  - http_options:
      url: "https://data.bathnes.gov.uk/geoserver/fms/ows"
      params:
        mapsource: "BathNES/WFS"
        SERVICE: "WFS"
        VERSION: "1.0.0"
        REQUEST: "GetFeature"
        TYPENAME: ""
        SRSNAME: "urn:ogc:def:crs:EPSG::27700"
        outputFormat: 'application/json'
    format_class: OpenLayers.Format.GeoJSON
    format_options: { ignoreExtraDims: 1 }
    asset_category: ""
    asset_item: "asset"
    asset_type: 'spot'
    max_resolution: 4.777314267158508
    asset_id_field: 'feature_no'
    attributes: ~
    geometryName: 'msGeometry'
    body: "Bath and North East Somerset Council"
    srsName: "EPSG:27700"
  - http_options:
      params:
        TYPENAME: "fms:ParksOpenSpacesAssets"
    asset_category: [ 'Abandoned vehicles', 'Dead animals', 'Dog fouling', 'Fly-tipping', 'Graffiti', 'Excessive or dangerous littering', 'Needles', 'Play area safety issue', 'Damage to bins, benches, and infrastructure', 'Allotment issue', 'Trees and woodland', 'Obstructive vegetation' ]
    asset_item: "park"
    disable_pin_snapping: true
    stylemap: fixmystreet.assets.stylemap_invisible
    attributes:
      asset_details: fixmystreet.assets.banes.park_asset_details
    filter_key: 'category'
    filter_value: [ 'Flower Beds', 'Grass', 'Hard', 'Hedgerow', 'Path', 'Pitch', 'Seats' ]
    name: "Parks and Grounds"
  - http_options:
      params:
        TYPENAME: "fms:curo_land_registry"
    asset_type: 'area'
    stylemap: fixmystreet.assets.stylemap_invisible
    non_interactive: true
    always_visible: true
    nearest_radius: 0.1
    road: true
    no_asset_msg_id: '#js-curo-group-restriction'
    actions:
      found: fixmystreet.assets.banes.curo_found
      not_found: fixmystreet.assets.banes.curo_not_found
brent:
  - http_wfs_url: "https://tilma.staging.mysociety.org/mapserver/brent"
    max_resolution: 4.777314267158508
    geometryName: 'msGeometry'
    srsName: "EPSG:3857"
    body: "Brent Council"
  - wfs_feature: "Highways"
    asset_type: 'area'
    stylemap: 'fixmystreet.assets.stylemap_invisible'
    nearest_radius: '0.1'
    non_interactive: 1
    asset_category: [ 'Fly-tipping', 'Pavement damage' ]
    no_asset_message: 'The current category selected is only for reporting this type of problem on the public highway. If the problem is within a park or open space or a council estate please go back and choose ‘Council estate grounds maintenance’ or ‘Parks and open spaces’.'
    road: 1
    actions:
      found: fixmystreet.assets.brent.road_found
      not_found: fixmystreet.assets.brent.road_not_found
  - wfs_feature: Housing
    asset_item: estate
    asset_type: area
    asset_group: Council estates grounds maintenance
    usrn:
      attribute: site_name
      field: location_name
    no_asset_message: '<p><strong>Please select a housing estate from the map</strong></p><p>This type of issue can only be reported within housing estates that are maintained by Brent Council. These areas are marked in yellow on the map.</p>'
    road: true
    actions:
      found: fixmystreet.assets.brent.found
      not_found: fixmystreet.assets.brent.not_found
    nearest_radius: 1
    disable_pin_snapping: true
  - wfs_feature: Parks_and_Open_Spaces
    asset_item: park
    asset_type: area
    asset_group: Parks and open spaces
    usrn:
      attribute: site_name
      field: location_name
    no_asset_message: '<p><strong>Please select a park from the map</strong></p><p>This type of issue can only be reported within parks and green spaces that are maintained by Brent Council. These areas are marked in yellow on the map.</p>'
    road: true
    actions:
      found: fixmystreet.assets.brent.found
      not_found: fixmystreet.assets.brent.not_found
    nearest_radius: 1
    disable_pin_snapping: true
  - wfs_feature: Allotments
    asset_item: allotment
    asset_type: area
    asset_group: Allotments
    usrn:
      attribute: site_name
      field: location_name
    no_asset_message: '<p><strong>Please select an allotment from the map</strong></p><p>This type of issue can only be reported within allotments that are maintained by Brent Council. These areas are marked in yellow on the map.</p>'
    road: true
    actions:
      found: fixmystreet.assets.brent.found
      not_found: fixmystreet.assets.brent.not_found
    nearest_radius: 1
    disable_pin_snapping: true
  - wfs_feature: Highway_Verges
    asset_item: verge or flower bed
    asset_type: area
    asset_group: Roadside verges and flower beds
    usrn:
      attribute: site_name
      field: location_name
    no_asset_message: '<p><strong>Please select a verge or flower bed from the map</strong></p><p>This type of issue can only be reported within verges or flower beds that are maintained by Brent Council. These areas are marked in yellow on the map.</p>'
    road: true
    actions:
      found: fixmystreet.assets.brent.found
      not_found: fixmystreet.assets.brent.not_found
    nearest_radius: 5
    disable_pin_snapping: true
  - wfs_feature: 'queens_park'
    asset_type: 'area'
    always_visible: true
    road: true
    non_interactive: true
    stylemap: fixmystreet.assets.stylemap_invisible
    no_asset_message: '<p>Queens Park is maintained by the City of London, not Brent Council.<p>'
    actions: fixmystreet.assets.brent.cemetery_actions
bromley:
  - http_wfs_url: "https://tilma.staging.mysociety.org/mapserver/bromley_wfs"
    asset_type: 'spot'
    max_resolution: 4.777314267158508
    asset_id_field: 'CENTRAL_AS'
    geometryName: 'msGeometry'
    srsName: "EPSG:3857"
    body: "Bromley Council"
  - wfs_feature: "Streetlights"
    asset_id_field: 'FEATURE_ID'
    attributes:
      feature_id: 'FEATURE_ID'
    asset_category: ["Lamp Column Damaged", "Light Not Working", "Light On All Day", "Light blocked by vegetation"]
    asset_item: 'street light'
  - wfs_feature: "PROW"
    stylemap: 'fixmystreet.assets.bromley.prow_stylemap'
    always_visible: true
    non_interactive: true
    road: true
    usrn:
      attribute: 'PROW_REFER'
      field: 'prow_reference'
  - wfs_feature: "Crystal_Palace_Park"
    asset_type: 'area'
    always_visible: true
    road: true
    non_interactive: true
    stylemap: fixmystreet.assets.stylemap_invisible
    all_categories: true
    no_asset_message: "<p>The Management of Crystal Palace Park has transferred to the Crystal Palace Park Trust who are now responsible for the day-to-day management and maintenance of the park, as well as any community or commercial events and concession agreements within the park. Their website can be found at: <a href='https://www.crystalpalaceparktrust.org/'>https://www.crystalpalaceparktrust.org</a> where any issues or queries regarding the park can be submitted.</p>"
    actions:
      found: fixmystreet.assets.bromley.found
      not_found: fixmystreet.assets.bromley.not_found
  - wfs_feature: "National_Sports_Centre"
    asset_type: 'area'
    always_visible: true
    road: true
    non_interactive: true
    stylemap: fixmystreet.assets.stylemap_invisible
    all_categories: true
    no_asset_message: "<p>This area is the responsibility of the National Sports Centre who oversee several of the access roads, the structure of the walkway and sports grounds as well as the associated lighting. They can be contacted directly via their website: <a href='https://www.better.org.uk/contactus'>https://www.better.org.uk/contactus</a></p>"
    actions:
      found: fixmystreet.assets.bromley.found
      not_found: fixmystreet.assets.bromley.not_found
buckinghamshire:
  - - name: 'default'
      http_wfs_url: "https://tilma.staging.mysociety.org/mapserver/bucks"
      asset_type: 'spot'
      max_resolution: 4.777314267158508
      asset_id_field: 'central_as'
      attributes:
        central_asset_id: 'central_as'
        site_code: 'site_code'
      geometryName: 'msGeometry'
      srsName: "EPSG:27700"
      body: "Buckinghamshire Council"
  - wfs_feature: "Whole_Street"
    propertyNames: ['msGeometry', 'site_code', 'feature_ty']
    stylemap: fixmystreet.assets.buckinghamshire.street_stylemap
    non_interactive: true
    road: true
    asset_item: 'road'
    asset_type: 'road'
    asset_group: [ 'Drainage issues', 'Flytipping', 'Roads & Pavements', 'Salt & Gritting', 'Street Lights', 'Street Signs', 'Traffic Lights and crossings', 'Trees and vegetation', 'Trees', 'Grass, hedges and weeds' ]
    actions:
      found: fixmystreet.assets.buckinghamshire.street_found
      not_found: fixmystreet.assets.buckinghamshire.street_not_found
    no_asset_msg_id: '#js-not-a-road'
    no_asset_msgs_class: '.js-roads-bucks'
    usrn:
      attribute: 'site_code'
      field: 'site_code'
    filter_key: 'feature_ty'
    filter_value: fixmystreet.assets.buckinghamshire.types_to_show
  - wfs_feature: "WinterRoutes"
    asset_category: "Snow and ice problem/winter salting"
    asset_item: "road"
    asset_type: "road"
    non_interactive: true
    road: true
    actions:
      found: fixmystreet.assets.buckinghamshire.winter_found
      not_found: fixmystreet.assets.buckinghamshire.winter_not_found
  - http_wfs_url: 'https://maps.buckscc.gov.uk/arcgis/services/Transport/OS_Highways_Speed/MapServer/WFSServer'
    wfs_feature: "OS_Highways_Speed:CORPGIS.CORPORATE.OS_Highways_Speed"
    propertyNames: ['speed', 'shape']
    actions:
      found: fixmystreet.assets.buckinghamshire.speed_found
      not_found: fixmystreet.assets.buckinghamshire.speed_not_found
    no_asset_msg_id: '#js-not-a-road'
    asset_category: ["Grass cutting", "Hedge problem", "Dirty signs", "Unauthorised signs"]
    non_interactive: true
    road: true
    asset_item: 'road'
    asset_type: 'road'
    stylemap: fixmystreet.assets.stylemap_invisible
    # Want to use this for parish categories as well as Bucks, so skip body checks.
    body: ~
lincolnshire:
  - wfs_url: "https://tilma.staging.mysociety.org/mapserver/lincs"
    geometryName: 'msGeometry'
    srsName: "EPSG:3857"
    body: "Lincolnshire County Council"
  - wfs_feature: "Carriageway"
    asset_category: [ "Damaged/missing cats eye", "Pothole on road/cycleway" ]
    asset_item: 'road'
    asset_item_message: ''
    disable_pin_snapping: true
    stylemap: 'fixmystreet.assets.stylemap_invisible'
northamptonshire:
  - wfs_url: "https://tilma.staging.mysociety.org/mapserver/northamptonshire"
    geometryName: 'msGeometry'
    srsName: "EPSG:3857"
    body: "Northamptonshire Highways"
    attributes:
      asset_resource_id: "asset_id"
    actions:
      asset_found: fixmystreet.assets.northamptonshire.asset_found
      asset_not_found: fixmystreet.assets.northamptonshire.asset_not_found
    class: OpenLayers.Layer.VectorAssetMove
  - asset_category: [ "Shelter Damaged", "Sign/Pole Damaged" ]
    asset_item: "bus stop"
    wfs_feature: "Bus_Stop"
oxfordshire:
  - - name: 'alloy'
      format_class: OpenLayers.Format.GeoJSON
      srsName: "EPSG:4326"
      class: OpenLayers.Layer.VectorAssetMove
      body: "Oxfordshire County Council"
      attributes:
        # feature_id
        unit_number: "title"
        unit_type: "unit_type"
        asset_resource_id: "itemId"
      feature_code: 'title'
      asset_id_field: 'itemId'
      construct_selected_asset_message: fixmystreet.assets.oxfordshire.light_construct_selected_asset_message
      actions:
        asset_found: fixmystreet.assets.oxfordshire.light_asset_found
        asset_not_found: fixmystreet.assets.oxfordshire.light_asset_not_found
  - template: 'alloy'
    http_options:
      url: "https://tilma.staging.mysociety.org/alloy/layer.php"
      params:
        url: "https://oxfordshire.staging"
        layer: designs_streetLights
    stylemap: fixmystreet.assets.oxfordshire.streetlight_stylemap
    asset_category: [ "Lamp Out of Light" ]
    max_resolution: 1.194328566789627
    asset_item: "street light"
    asset_type: "spot"
peterborough:
  - - name: 'default'
      max_resolution: 4.777314267158508
      srsName: "EPSG:3857"
      body: "Peterborough City Council"
    - name: 'tilma'
      template: 'default'
      http_wfs_url: "https://tilma.staging.mysociety.org/mapserver/peterborough"
      geometryName: 'msGeometry'
    - name: 'arcgis'
      template: 'default'
      protocol_class: OpenLayers.Protocol.ArcgisHTTP
      format_class: OpenLayers.Format.GeoJSON
      http_options:
        params:
          inSR: '3857'
          outSR: '3857'
          f: 'geojson'
      geometryName: 'SHAPE'
    - name: 'trees'
      template: 'tilma'
      class: OpenLayers.Layer.VectorAssetMove
      actions:
        asset_found: fixmystreet.message_controller.asset_found
        asset_not_found: fixmystreet.message_controller.asset_not_found
      attributes:
        tree_code: 'TREE_CODE'
      asset_id_field: 'TREE_CODE'
      asset_group: 'Trees'
      relevant: fixmystreet.assets.peterborough.trees_relevant
    - name: 'lights'
      template: 'tilma'
      wfs_feature: "StreetLights"
      asset_id_field: 'UNITID'
      asset_type: 'spot'
      asset_item: 'light'
    - name: 'flytipping'
      template: 'arcgis'
      http_options:
        params:
          inSR: '3857'
          outSR: '3857'
          f: 'geojson'
          outFields: ''
      nearest_radius: 0.01
      stylemap: fixmystreet.assets.stylemap_invisible
      asset_category: ['General fly tipping', 'Hazardous fly tipping', 'Offensive graffiti', 'Non offensive graffiti', 'Offensive graffiti - STAFF ONLY' ]
      non_interactive: true
      road: true
      asset_item: 'road'
      asset_type: 'road'
  - template: 'trees'
    wfs_feature: "tree_points"
    asset_type: 'spot'
    asset_item: 'tree'
  - template: 'lights'
    class: OpenLayers.Layer.VectorAssetMove
    stylemap: fixmystreet.assets.peterborough.streetlight_stylemap
    feature_code: 'UNITNO'
    attributes:
      asset_details: fixmystreet.assets.peterborough.lighting_asset_details
    asset_group: 'Street lighting'
    asset_category: 'Lighting enquiry'
    relevant: fixmystreet.assets.peterborough.lighting_relevant
    actions:
      asset_found: fixmystreet.assets.peterborough.lighting_asset_found
      asset_not_found: fixmystreet.assets.peterborough.lighting_asset_not_found
  # PCC Property Combined
  - template: 'flytipping'
    http_options:
      url: 'https://tilma.staging.mysociety.org/resource-proxy/proxy.php?https://peterborough.assets/4/query?'
    actions:
      found: fixmystreet.assets.peterborough.flytipping_pcc_found
      not_found: fixmystreet.assets.peterborough.flytipping_pcc_not_found
  # PCC Property Leased Out NOT Responsible
  - template: 'flytipping'
    http_options:
      url: 'https://tilma.staging.mysociety.org/resource-proxy/proxy.php?https://peterborough.assets/3/query?'
    actions:
      found: fixmystreet.assets.peterborough.flytipping_leased_found
shropshire:
  - http_wfs_url: "https://tilma.mysociety.org/mapserver/shropshire"
    asset_type: 'spot'
    asset_id_field: 'CentralAssetId'
    attributes:
      central_asset_id: 'CentralAssetId'
    geometryName: 'msGeometry'
    srsName: "EPSG:27700"
    body: "Shropshire Council"
  - wfs_feature: "Street_Gazetteer"
    stylemap: 'fixmystreet.assets.shropshire.street_stylemap'
    usrn:
      attribute: 'USRN'
      field: 'site_code'
    road: true
    asset_item: 'road'
    asset_type: 'road'
    no_asset_msg_id: '#js-not-a-road'
    no_asset_msgs_class: '.js-roads-shropshire'
    always_visible: true
    non_interactive: true
    actions:
      found: 'fixmystreet.assets.shropshire.street_found'
      not_found: 'fixmystreet.assets.shropshire.street_not_found'
tfl:
  - - http_wfs_url: "https://tilma.staging.mysociety.org/mapserver/tfl"
      name: 'road'
      asset_type: 'spot'
      max_resolution: 2.388657133579254
      geometryName: 'msGeometry'
      srsName: "EPSG:3857"
    - name: 'assets'
      template: 'road'
      class: OpenLayers.Layer.VectorAssetMove
      body: 'TfL'
      actions:
        asset_found: fixmystreet.assets.tfl.asset_found
        asset_not_found: fixmystreet.assets.tfl.asset_not_found
  - template: 'assets'
    wfs_feature: "trafficsignals"
    asset_id_field: 'Site'
    attributes:
        site: 'Site'
    asset_group: "Traffic Lights"
    asset_item: 'traffic signal'
  - template: 'assets'
    wfs_feature: "busstops"
    asset_id_field: 'STOP_CODE'
    attributes:
        stop_code: 'STOP_CODE'
        shelter_id: 'SHELTER_ID'
    asset_group: "Bus Stops and Shelters"
    asset_item: 'bus stop'
  - template: 'assets'
    wfs_feature: "busstations"
    asset_id_field: 'Name'
    feature_code: 'Name'
    attributes:
      station_name: 'Name'
    asset_group: "Bus Stations"
    asset_item: 'bus station'
  - template: 'assets'
    http_wfs_url: ''
    http_options:
      url: "https://tilma.staging.mysociety.org/streetmanager.php"
      params:
        points: 1
        end_today: 1
    srsName: "EPSG:27700"
    format_class: OpenLayers.Format.GeoJSON
    name: "Roadworks"
    asset_category: "Roadworks"
    stylemap: fixmystreet.assets.tfl.roadworks_stylemap
    asset_id_field: 'work_ref'
    asset_item: 'roadworks'
    attributes:
      promoter_works_ref: 'work_ref'
      start: fixmystreet.assets.tfl.roadworks_attribute_start
      end: fixmystreet.assets.tfl.roadworks_attribute_end
      promoter: 'promoter'
      works_desc: 'description'
      works_state: 'status'
      tooltip: 'summary'
    filter_key: true
    filter_value: fixmystreet.assets.tfl.roadworks_filter_value
    actions:
      asset_found: fixmystreet.assets.tfl.roadworks_asset_found
      asset_not_found: fixmystreet.assets.tfl.roadworks_asset_not_found
  - template: 'road'
    wfs_feature: "RedRoutes"
    name: "Red Routes"
    max_resolution: 9.554628534317017
    road: true
    non_interactive: true
    always_visible: true
    nearest_radius: 0.1
    stylemap: fixmystreet.assets.tfl.tlrn_stylemap
    no_asset_msg_id: '#js-not-tfl-road'
    actions:
      found: fixmystreet.message_controller.road_found
      not_found: fixmystreet.assets.tfl.red_routes_not_found
  - template: 'road'
    wfs_feature: "A13TLRN_DBFO"
    max_resolution: 9.554628534317017
    road: true
    non_interactive: true
    always_visible: true
    nearest_radius: 0.1
    stylemap: fixmystreet.assets.tfl.tlrn_stylemap
    no_asset_msg_id: '#js-tlrn-dbfo-road'
    actions:
      found: fixmystreet.assets.tfl.a13_found
      not_found: fixmystreet.message_controller.road_found
westminster:
  - - asset_type: 'spot'
      max_resolution: 4.777314267158508
      asset_id_field: 'central_asset_id'
      srsName: "EPSG:4326"
      body: "Westminster City Council"
      format_class: OpenLayers.Format.GeoJSON
      format_options: {ignoreExtraDims: true}
      protocol_class: OpenLayers.Protocol.ArcgisHTTP
      http_options:
        params:
          inSR: '4326'
          f: 'geojson'
    - name: 'uprn'
      template: 'default'
      class: OpenLayers.Layer.VectorAssetMove
      asset_item: 'property'
      http_options:
        url: "https://tilma.mysociety.org/resource-proxy/proxy.php?https://westminster.staging/25/query?"
        params:
          inSR: '4326'
          f: 'geojson'
          where: "PARENTUPRN='XXXX' AND PROPERTYTYPE NOT IN ('Pay Phone','Street Record')"
          outFields: 'UPRN,Address,ParentChild'
      max_resolution: 0.5971642833948135
      attributes:
        UPRN: 'UPRN'
      actions:
        asset_found: fixmystreet.assets.westminster.uprn_asset_found
        asset_not_found: fixmystreet.assets.westminster.uprn_asset_not_found
    - name: 'point'
      template: 'default'
      http_options:
        params:
          inSR: '4326'
          f: 'geojson'
          outFields: 'central_asset_id'
      attributes:
        central_asset_id: 'central_asset_id'
    - name: 'subcat'
      template: 'point'
      class: OpenLayers.Layer.VectorAssetWestminsterSubcat
  - http_options:
      url: "https://tilma.mysociety.org/resource-proxy/proxy.php?https://westminster.staging/40/query?"
      params:
        outFields: 'USRN'
    always_visible: true
    non_interactive: true
    stylemap: fixmystreet.assets.stylemap_invisible
    nearest_radius: 100
    usrn:
      attribute: 'USRN'
      field: 'USRN'
  - template: 'uprn'
    asset_category: [ 'Damaged, dirty, or missing bin' ]
    class: OpenLayers.Layer.VectorAssetWestminsterSubcatUPRN
    subcategories: [ '1', '4' ]
    subcategory_id: '#form_bin_type'
  - template: 'point'
    asset_category: 'Busking and Street performance'
    asset_item: 'street entertainment pitch'
    http_options:
      url: https://tilma.mysociety.org/resource-proxy/proxy.php?https://westminster.staging/66/query?
      params:
        outFields: 'Site,Category,Terms_Conditions,UPRN'
    attributes:
      UPRN: 'UPRN'
    actions:
      asset_found: fixmystreet.assets.westminster.asset_found
      asset_not_found: fixmystreet.assets.westminster.asset_not_found
  - template: 'subcat'
    asset_category: 'Signs and bollards'
    subcategories: [ '2' ]
    subcategory_id: '#form_featuretypecode'
    asset_item: 'street nameplate'
    http_options:
      url: https://tilma.mysociety.org/resource-proxy/proxy.php?https://westminster.staging/46/query?

