Skip to content

Commit

Permalink
Load features before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 3, 2014
1 parent b008dd1 commit 8c984cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ol/renderer/canvas/canvasvectorlayerrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ ol.renderer.canvas.VectorLayer.prototype.prepareFrame =
var tolerance = frameStateResolution / (2 * pixelRatio);
var replayGroup = new ol.render.canvas.ReplayGroup(tolerance, extent,
frameStateResolution);
vectorSource.loadFeatures(extent, frameStateResolution);
var renderFeature =
/**
* @param {ol.Feature} feature Feature.
Expand Down
7 changes: 7 additions & 0 deletions src/ol/source/vectorsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ ol.source.Vector.prototype.isEmpty = function() {
};


/**
* @param {ol.Extent} extent Extent.
* @param {number} resolution Resolution.
*/
ol.source.Vector.prototype.loadFeatures = goog.nullFunction;


/**
* @param {ol.Feature} feature Feature.
* @todo stability experimental
Expand Down

0 comments on commit 8c984cc

Please sign in to comment.