[OpenLayers-Users] Popup Opacity issues
Andrew Larcombe
andrew at andrewlarcombe.co.uk
Mon Apr 16 11:08:33 EDT 2007
On 16 Apr 2007, at 14:57, joanne cook wrote:
> Hi All,
>
> I have two versions of a map, one which is a little broken, yet has
> an opaque popup, and another that does everything else I want but
> the popup seems to ignore the setopacity parameter. I have no idea
> why this might be. Could someone take a look at the code and
> enlighten me? These are both tested with firefox 2.
> Broken but opaque:
> http://mapdata.thehumanjourney.net/OpenLayers-2.3/examples/test3.html
> Working but not opaque:
> http://mapdata.thehumanjourney.net
Hi Jo,
I think it might be because you're passing in a string to setOpacity.
Try changing
popup.setOpacity("0.85");
to
popup.setOpacity(0.85);
Cheers,
Andrew
---
Andrew Larcombe
Freelance Geospatial, Database & Web Programming
web: http://www.andrewlarcombe.co.uk
email: andrew at andrewlarcombe.co.uk
mob: +44 (7760) 258623
icq: 306690163
More information about the Users
mailing list