Handle features without bounds.

Updates to tests to work with new wrap dateline code.  Canvas renderer needs to handle geometries without bounds as well.
This commit is contained in:
tschaub
2011-10-11 14:48:10 -06:00
parent c2bf717e5c
commit cb74ede41b
2 changed files with 26 additions and 17 deletions

View File

@@ -166,7 +166,7 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
worldBounds = this.map.getMaxExtent();
}
var intersects = bounds.intersectsBounds(this.extent, {worldBounds: worldBounds});
var intersects = bounds && bounds.intersectsBounds(this.extent, {worldBounds: worldBounds});
rendered = (style.display !== "none") && !!bounds && intersects;
if (rendered) {