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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user