[Tilesathome] Default layer transparent
Robert (Jamie) Munro
rjmunro at arjam.net
Thu May 24 23:23:04 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Frederik Ramm wrote:
> Hi,
>
>> Some reasons for updating:
>> sea is now rendered as sea, not as land as it was before.
>> lowzoom uses 67/69 byte blank images
>> maplint layer transparent, default not
>
> I was unhappy about the hard-codedness of this. After all, the maplint
> layer could be called anything, it's just a token really, so it is not
> nice to check for "maplint" in tilesGen.pl. I modified this to
>
> if ($Config{"Layer.$layer.Transparent"})
> {
> $SubImage->transparent($SubImage->colorAllocate(248,248,248));
> }
> else
> {
> $SubImage->transparent(-1);
> }
>
> However after making this change it occurred to me that we still have a
> nasty dependency here because this depends on "f8f8f8" being used as the
> background colour, right?
What occurred to me after making that mistake, is that maybe we want all
the backgrounds to be transparent. As I pointed out on IRC the other
night, if you type javascript:void(document.bgColor='#f8f8f8') into the
url bar of a slippy map with the transparent tiles, it's fixed. But if
you like maps with red backgrounds you can use
javascript:void(document.bgColor='#ff0000') :-)
Seriously, though, allowing the owners of the slippy maps to set the
background colours doesn't seem like a bad thing, and it also enables
hybrid Landsat maps, and possibly other hybrid maps.
Robert (Jamie) Munro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGVhBFz+aYVHdncI0RAnM4AJ4iHivdDgXIO8PUSTZNejbv/oACowCg7BGi
FC7/MpUSGF+Tp7Uh+2qX6hI=
=K+Fq
-----END PGP SIGNATURE-----
More information about the Tilesathome
mailing list