From 46655c327dc3a3d1d16b685f11c58dad1f632db4 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 17 May 2018 21:46:41 +0100 Subject: [Bromley] Store PROW id in a field if present. --- web/cobrands/bromley/map.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/cobrands/bromley/map.js b/web/cobrands/bromley/map.js index 35c339f69..e2e8e0073 100644 --- a/web/cobrands/bromley/map.js +++ b/web/cobrands/bromley/map.js @@ -123,7 +123,17 @@ fixmystreet.assets.add($.extend(true, {}, defaults, { }, stylemap: prow_stylemap, always_visible: true, - non_interactive: true + non_interactive: true, + road: true, + all_categories: true, + actions: { + found: function(layer, feature) { + $('#form_prow_reference').val(feature.attributes.PROW_REFER); + }, + not_found: function(layer) { + $('#form_prow_reference').val(''); + } + } })); })(); -- cgit v1.2.3