[OpenLayers-Trac] [OpenLayers] #3266: cache external graphic images
in the canvas renderer
OpenLayers
trac-20090302 at openlayers.org
Wed Apr 20 14:44:02 EDT 2011
#3266: cache external graphic images in the canvas renderer
-----------------------------+----------------------------------------------
Reporter: tschaub | Owner: crschmidt
Type: feature | Status: new
Priority: minor | Milestone: 2.12 Release
Component: Renderer.Canvas | Version: 2.10
Keywords: | State:
-----------------------------+----------------------------------------------
Currently, we create a new {{{Image}}} instance for every feature that is
drawn with an external graphic. I think it is safe to assume that the
number of different image source URLs will be small enough that we could
be caching images by URL. If we don't think this is a safe assumption, we
could limit the cache size.
The benefit would be that we could avoid the flash we get by waiting for
image {{{onload}}} to be called before rendering the image on the canvas.
--
Ticket URL: <http://trac.openlayers.org/ticket/3266>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list