Merge pull request #2866 from elemoine/2801
Cluster source calls loadFeatures on vector source
This commit is contained in:
@@ -60,13 +60,14 @@ goog.inherits(ol.source.Cluster, ol.source.Vector);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Extent} extent
|
* @inheritDoc
|
||||||
* @param {number} resolution
|
|
||||||
*/
|
*/
|
||||||
ol.source.Cluster.prototype.loadFeatures = function(extent, resolution) {
|
ol.source.Cluster.prototype.loadFeatures = function(extent, resolution,
|
||||||
|
projection) {
|
||||||
if (resolution !== this.resolution_) {
|
if (resolution !== this.resolution_) {
|
||||||
this.clear();
|
this.clear();
|
||||||
this.resolution_ = resolution;
|
this.resolution_ = resolution;
|
||||||
|
this.source_.loadFeatures(extent, resolution, projection);
|
||||||
this.cluster_();
|
this.cluster_();
|
||||||
this.addFeatures(this.features_);
|
this.addFeatures(this.features_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user