Re: [OpenLayers-Users] mr. OL, don't create the hidden layer tiles, please!
yes, that is! thanks, Pere Pere Roca Ristol wrote: > > > hi all, > I want to emulate LayerSwitcher actions of hide/show Base layers. I want > to do it from another radio form. > > When user clicks Background layer A, layer B is hidden, and if user zooms, > B tiles should NOT be created (I see them in Firebug) to increase > performance. My problem is that these tiles are created even if I use > setVisibility(false) for layer B (it does not happens using LayerSwitcher > buttons). > > I tyried to map.removeLayer(B), and Ok, B tiles are not created anymore. > But later, when user chooses B (map.addLayer(B)) and zoom in/out... layer > B bbox parameters are not updated and is allways the same B image. > > some idea? > thanks! > > Pere > > > -- View this message in context: http://n2.nabble.com/mr.-OL%2C-don%27t-create-the-hidden-layer-tiles%2C-please%21-tp3230983p3231867.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users
Re: [OpenLayers-Users] mr. OL, don't create the hidden layer tiles, please!
Hi, you should not use setVisibility on baselayers. Always use setBaseLayer on the map. Best regards, Bart > > > hi all, > I want to emulate LayerSwitcher actions of hide/show Base layers. I want > to > do it from another radio form. > > When user clicks Background layer A, layer B is hidden, and if user zooms, > B > tiles should NOT be created (I see them in Firebug) to increase > performance. > My problem is that these tiles are created even if I use > setVisibility(false) for layer B (it does not happens using LayerSwitcher > buttons). > > I tyried to map.removeLayer(B), and Ok, B tiles are not created anymore. > But > later, when user chooses B (map.addLayer(B)) and zoom in/out... layer B > bbox > parameters are not updated and is allways the same B image. > > some idea? > thanks! > > Pere > > > -- > View this message in context: > http://n2.nabble.com/mr.-OL%2C-don%27t-create-the-hidden-layer-tiles%2C-please%21-tp3230983p3230983.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > ___ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users