Ticket #2513 (new bug)

Opened 3 years ago

Last modified 2 years ago

Layer.Grid.destroy() not working correctly for Chrome

Reported by: arminburger Owned by: elemoine
Priority: minor Milestone: Future
Component: Layer.Grid Version: 2.8
Keywords: Cc:
State:

Description

The Layer.destroy() method for Grid based layers should "Deconstruct the layer and clear the grid."

This works fine for Firefox and IE, but in Google Chrome the destroy() seems not to clear the grid. When after the destroy() creating the layer again and adding it to the map, in Chrome the tiles remain the same and are not requested again from the server.

Change History

Changed 3 years ago by arminburger

  • owner set to elemoine
  • component changed from general to Layer.Grid

I checked again and it seems that the method clearGrid() in Grid.js does not do this correctly on Chrome and Safari. After calling mylayer.clearGrid() and mylayer.redraw() the tiles are not forced to be reloaded from the server.

Changed 2 years ago by fredj

  • milestone changed from 2.11 Release to Future
Note: See TracTickets for help on using tickets.