Don't render features with no geometry. This gives us similar behavior in IE

and FF. There is probably more to this, but we can solve those issues as they
come up: going with this one as is for now. (Closes #1111)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-02-07 20:04:42 +00:00
parent 92b4894e33
commit c75909a45e

View File

@@ -141,7 +141,9 @@ OpenLayers.Renderer = OpenLayers.Class({
if(style == null) {
style = feature.style;
}
this.drawGeometry(feature.geometry, style, feature.id);
if (feature.geometry) {
this.drawGeometry(feature.geometry, style, feature.id);
}
},