From a76475888c8b2f712aa567aa3c7fac41dc1d4d71 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 9 Apr 2019 17:06:53 +0100 Subject: fire asset not found if asset layer is not visible this is required so that any hiding of messages etc occurs when the layer is hidden. --- web/cobrands/fixmystreet/assets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index e4a48dc34..8b121066b 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -405,6 +405,8 @@ function layer_visibilitychanged() { this.road_not_found(); } return; + } else if (!this.getVisibility()) { + this.asset_not_found(); } check_zoom_message_visibility.call(this); -- cgit v1.2.3