diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-17 21:46:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-04 14:09:31 +0100 |
commit | 46655c327dc3a3d1d16b685f11c58dad1f632db4 (patch) | |
tree | 0ab2b45b61a69e94c0cecf4873d530e9da992704 /web | |
parent | 07be4da57ab98fc955b0c88bb0049fd886a16b92 (diff) |
[Bromley] Store PROW id in a field if present.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/bromley/map.js | 12 |
1 files changed, 11 insertions, 1 deletions
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(''); + } + } })); })(); |