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 ?
أكثر...
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 ?
أكثر...