Ticket #3235 (closed feature: fixed)
Only add features to unrenderedFeatures when drawFeature returns false
| Reported by: | ahocevar | Owned by: | crschmidt |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | Layer.Vector | Version: | 2.10 |
| Keywords: | Cc: | ||
| State: | Commit |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

