Skip to content

Commit

Permalink
Merge pull request openlayers#1251 from tschaub/expire-after-render
Browse files Browse the repository at this point in the history
Only call expireTiles_ if already rendered.
  • Loading branch information
tschaub committed Nov 7, 2013
2 parents 7f120ba + dbc3109 commit cd57d46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ol/renderer/canvas/canvasvectorlayerrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ ol.renderer.canvas.VectorLayer.prototype.getFeaturesForPixel =
* @private
*/
ol.renderer.canvas.VectorLayer.prototype.handleLayerChange_ = function(event) {
this.expireTiles_(event.extents);
if (goog.isDef(this.renderedResolution_)) {
this.expireTiles_(event.extents);
}
this.requestMapRenderFrame_();
};

Expand Down

0 comments on commit cd57d46

Please sign in to comment.