OpenLayers OpenLayers

Changeset 6023

Show
Ignore:
Timestamp:
02/07/08 15:04:42 (1 year ago)
Author:
crschmidt
Message:

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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Renderer.js

    r5614 r6023  
    142142            style = feature.style; 
    143143        } 
    144         this.drawGeometry(feature.geometry, style, feature.id); 
     144        if (feature.geometry) { 
     145            this.drawGeometry(feature.geometry, style, feature.id); 
     146        } 
    145147    }, 
    146148