[OpenLayers-Trac] [OpenLayers] #3235: Only add features to
unrenderedFeatures when drawFeature returns false
OpenLayers
trac-20090302 at openlayers.org
Fri Apr 1 04:30:17 EDT 2011
#3235: Only add features to unrenderedFeatures when drawFeature returns false
--------------------------+-------------------------------------------------
Reporter: ahocevar | Owner: crschmidt
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Layer.Vector | Version: 2.10
Keywords: | State:
--------------------------+-------------------------------------------------
Renderer::drawFeature returns undefined for features without a geometry,
and false for features that were not rendered. Renderer.SVG::drawFeature
returns null for features that were drawn incompletely (i.e. clipped
because the extent exceeds the coordinate range). But Layer.Vector adds
features to the unrenderedFeatures array for every falsish return from
Renderer::drawFeature. Instead, it should only add features where
drawFeature returns false or null. When we get rid of Renderer.SVG, we
only need to check for false.
--
Ticket URL: <http://trac.openlayers.org/ticket/3235>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list