hrde-app: remove UTFGrid when corresponding layer is hidden.

Bug #1383729 reported by Daniele Viganò
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
High
Ben Wyss

Bug Description

When a layer is hidden in a leaflet application the UTFGrid remains loaded: also the corresponding UTFGrid should be unloaded.

This causes inconsistency between visible layers and mouse clicks on the map.
This happens in (almost) all the leaflet apps with interactivity (i.e. hazus, hrde-app...)

See: https://github.com/danzel/Leaflet.utfgrid#turning-interaction-on-and-off and http://danzel.github.io/Leaflet.utfgrid/example/layers.html

summary: - Remove UTFGrid when corresponding layer is hidden
+ hrde-app: Remove UTFGrid when corresponding layer is hidden
description: updated
Changed in oq-platform:
importance: Medium → High
summary: - hrde-app: Remove UTFGrid when corresponding layer is hidden
+ hrde-app: Remove UTFGrid when corresponding layer is hidden.
summary: - hrde-app: Remove UTFGrid when corresponding layer is hidden.
+ hrde-app: remove UTFGrid when corresponding layer is hidden.
Ben Wyss (bmwyss)
Changed in oq-platform:
status: Confirmed → Fix Committed
Revision history for this message
Matteo Nastasi (nastasi-oq) wrote :

A bug occurs when:
  - add "hazard-map-eu-as-sa01-002" - hazard map layer
  - add "shallow crust" - Input models layer
  - close Hazard Data window
  - disable "shallow crust" from layers list
  => hazard data fall into the Plot window

Note: the same logic (disable window associated with a layer when layer is turned off) must be extended to the other type of layers.

Changed in oq-platform:
status: Fix Committed → Confirmed
status: Confirmed → In Progress
Ben Wyss (bmwyss)
Changed in oq-platform:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.