[OpenLayers-Users] Long URLs messing up Opacity

Andreas Hocevar ahocevar at opengeo.org
Tue Apr 17 13:36:23 EDT 2012


Hi,

thanks for your report. You found a regression. Can you please create
an issue ticket on http://github.com/openlayers/openlayers?

Thanks,
Andreas.

On Tue, Apr 17, 2012 at 5:33 PM, LewInMadrid <LCLARK at genasys.com> wrote:
> *For OpenLayers 2.11*
>
> Unlike the dev version, the opacity command works after sending a long WMS
> URL in Firefox.
> However, it sends the Post request three times, the second of which sits
> waiting without returning content.
> In IE8 I see the same problem as in the dev versión, with the opacity
> command not working after issuing a long url.
>
> *For OpenLayers Dev version*
>
> After I send a WMS long url, the setOpacity function only works when I issue
> a mergeNewParams.
>
> If I do this I see the opacity change.
>    overlay.setOpacity(0.3);
>    overlay.mergeNewParams({makeTheUrlLong: longText});
>
> If I just do this nothing happens.
>    overlay.setOpacity(0.3);
>
> If I send a short URL then setOpacity starts working again.
> This occurs in both Firefox and IE8.
>
> Also, in IE8 the setOpacity command on the overlay also changes the opacity
> of the base layer.
>
> I've added a couple of setOpacity comands to the wms-long-url.html example
> to verify the problem.
>
> // add behavior to dom elements
> document.getElementById("longurl").onclick = function() {
>    overlay.setOpacity(0.3);
>    overlay.mergeNewParams({makeTheUrlLong: longText});
> };
> document.getElementById("shorturl").onclick = function() {
>    overlay.setOpacity(0.7);
>    overlay.mergeNewParams({makeTheUrlLong: null});
> };
> document.getElementById("opacity1").onclick = function() {
>    overlay.setOpacity(0.1);
> };
> document.getElementById("opacity2").onclick = function() {
>    overlay.setOpacity(0.9);
> };
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Long-URLs-messing-up-Opacity-tp4890668p4890668.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list