How to reload vector layer when map is panned?

المشرف العام

Administrator
طاقم الإدارة
I am using OpenLayers 3.0.0 server vector to read data from a WFS layer. I added the strategy_ function to reload on resolution change as follows.

layerSource.strategy_ = function(extent, resolution) { if(this.resolution && this.resolution != resolution){ this.loadedExtents_.clear(); } return [extent]; };

However , I want the servervector's loader function to be called on any simple map panning(dragging) so how can I do that ?



أكثر...
 
أعلى