[OpenLayers-Trac] Re: [OpenLayers] #3288: Adding vector layer to
invisible map throw an error
OpenLayers
trac-20090302 at openlayers.org
Tue May 3 16:13:02 EDT 2011
#3288: Adding vector layer to invisible map throw an error
----------------------+-----------------------------------------------------
Reporter: jlacroix | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.12 Release
Component: Renderer | Version: 2.10
Keywords: | State:
----------------------+-----------------------------------------------------
Comment(by jlacroix):
Comment by elemoine:
I think we should fix Renderer and guard against "invalid" map sizes
(I haven't looked ar what it would look like yet).
Here's what the app developper should be able to do:
mapdiv.style.display = "none";
map = new OpenLayers.Map(mapdiv);
map.addLayer(new OpenLayers.Layer.Vector(""));
mapdiv.style.display = "block";
map.updateSize();
I think it'd be great to fix that before 2.11 final.
Cheers,
--
Ticket URL: <http://trac.openlayers.org/ticket/3288#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list