[OpenLayers-Trac] Re: [OpenLayers] #3442: Fix
OpenLayers.Renderer.Canvas.drawFeature
method in case if feature's bounds are empty
OpenLayers
trac-20090302 at openlayers.org
Wed Aug 3 11:46:39 EDT 2011
#3442: Fix OpenLayers.Renderer.Canvas.drawFeature method in case if feature's
bounds are empty
-----------------------------+----------------------------------------------
Reporter: arublev | Owner: crschmidt
Type: bug | Status: new
Priority: major | Milestone: 2.11 Release
Component: Renderer.Canvas | Version: 2.11 RC1
Keywords: | State: Commit
-----------------------------+----------------------------------------------
Comment(by fredj):
Replying to [comment:6 erilem]:
> For clarity I'd rather do
>
> {{{
> rendered = (style.display !== "none") && !!bounds &&
bounds.intersectsBounds(this.extent);
> }}}
>
> With that we make it explicit what element we need to cast to a boolean.
>
> Please commit with the statement you like most.
your version is is more clear, thanks
--
Ticket URL: <http://trac.openlayers.org/ticket/3442#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list