datadavev / DwC_views

Implements viewers for Darwin Core record repositories
1 stars 0 forks source link

DwC JQuery Client - Map View: Redundant Dynamic Marker Loading #45

Closed coreyo closed 13 years ago

coreyo commented 13 years ago

As the Map View loads, various unexpected idle events are triggered causing the map to re-request the same result-set multiple times.

coreyo commented 13 years ago

The 'idle' event is not limited to panning and zooming, as triggered by the user interface. Any programmatic calls including the 'resize' event and fitBounds() function also trigger an idle call upon completion. The map must be made to hold extra state and be intelligent enough to know when to do nothing if an idle event is triggered with no significant state change.