diff options
author | Struan Donald <struan@exo.org.uk> | 2019-09-18 16:07:31 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-09-27 17:35:15 +0100 |
commit | 2442aa586fd7729745b8343bb6f24f05fd19e7fb (patch) | |
tree | d3a8e8b13119ceeb9f091e812bfdd57414a938dc | |
parent | 86a5207f68b49d87aff41d832e0d48c0b291c264 (diff) |
enable non interactive layers to show zoom message
we want the road layers to be able to show the zoom/pick a thing/you
have picked a thing message so add a `display_zoom_message` config
option to override the `non_interative` option. We don't want to remove
the `non_interative` option as otherwise item selection hides the pin.
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index 62efba30f..9113c95a2 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -375,7 +375,7 @@ function clear_fields_for_attributes(attributes) { } function check_zoom_message_visibility() { - if (this.fixmystreet.non_interactive) { + if (this.fixmystreet.non_interactive && !this.fixmystreet.display_zoom_message) { return; } var select = this.fixmystreet.asset_group ? 'category_group' : 'form_category'; @@ -419,6 +419,9 @@ function layer_visibilitychanged() { if (!this.getVisibility()) { this.road_not_found(); } + if (this.fixmystreet.display_zoom_message) { + check_zoom_message_visibility.call(this); + } return; } else if (!this.getVisibility()) { asset_unselected.call(this); |