Ticket #82 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

Add the ability to display a "waiting" mouse cursor while a new layer is being loaded

Reported by: fvanderbiest Owned by: fredj
Priority: blocker Milestone: Future
Component: General.client Version: SVN
Keywords: layer loading mouse cursor waiting Cc:
State: Needs discussion

Description

This happens when I check a new layer (specially when singleTile is true, which makes it longer to produce) : the user should be informed that this new layer has been requested and is being loaded.

Change History

  Changed 5 years ago by fvanderbiest

  • type changed from defect to enhancement

follow-up: ↓ 3   Changed 5 years ago by fredj

see http://www.openlayers.org/dev/examples/layerLoadMonitoring.html

Basically you need to register two event handlers on every layer: one for 'loadstart' and the other for 'loadend' event. Then you can change the cursor type in the callback functions.

in reply to: ↑ 2   Changed 5 years ago by fvanderbiest

Replying to fredj:

Basically you need to register two event handlers on every layer: one for 'loadstart' and the other for 'loadend' event. Then you can change the cursor type in the callback functions.

Indeed, that works. Thank's Fred. But should'nt this feature be factorized across projects inside Map Fish? ?

  Changed 5 years ago by sypasche

There could be a helper class in mapfish which would do the registration and event processing. It could then be connected with the Ext progress widgets or could simply setting the mouse cursor.

  Changed 5 years ago by fredj

  Changed 5 years ago by pgiraud

  • state set to Needs discussion
  • milestone set to 0.3 Release

#82 needs more discussion as whether we can make something in MF or not

  Changed 5 years ago by elemoine

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