[mapserver-users] HTML Legend vs Transparency in Layer

Steven Lehr lehrs at erau.edu
Thu Jun 18 14:09:54 PDT 2009


I'd sure like to see just a white (255 255 255) IMAGECOLOR as the base
for now. I realize when you stack them it will alter based on the
transparencey.  But without having to deal with all the exceptions.  For
now if it could just take the transparency and a base white color as the
base, it sure would help my 60% Transparent 255 0 0 look less the DARK
RED which it currently shows on the legend, yet NEVER looks that way on
the map.  I'm sure there will be more wants later :-) - though as Steve
Lime points out, its good to have a base.  If your base layer is Tan,
then that skews things and it would be nice for the tan skew (but, for
now I'm just looking for 255 255 255) as the base and the level of
transparency setting inherited from the LAYER.
 
Thanks
 

Steven Lehr

  

 

________________________________

From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] 
Sent: Thursday, June 18, 2009 3:10 PM
To: Steve Lime; Lehr, Steven; Richard Greenwood
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] HTML Legend vs Transparency in Layer



All, 


How hard would it be to add in IMAGECOLOR options for adding a Raster
background, like an aerial photo? 


I've wondered about this legend creation from time to time as well, I
just skip the whole process where a background (raster) is used in my
layer configs currently, but more control over the legend creation would
be nice. 


Also, and this may seem like a way left thinking thought, what about
using a regular layer definition for Legend output, either by adding in
some (or all) of the legend capabilities to a regular layer definition
as an option.  I haven't thought this through completely, but some of
the legend controls seem to lend themselves to building up a markup
layer of sorts.  Could this be a way of making the legends for these odd
layers and at the same time begin build out of some map markup tools as
well? 


bobb 




>>> "Steve Lime" <Steve.Lime at dnr.state.mn.us> wrote:


Problem is that your transparency is occurring over other layers (e.g.
aerial photos) so it will never
match unless you're drawing over the same background (typically defined
by IMAGECOLOR) in
both cases. I'm not sure how easy a fix it is. Feel free to create a
ticket though.

Steve

>>> On 6/18/2009 at 8:54 AM, in message
<9D58C43BDFE3F846ADF3A0F8100940B3137CA5 at DBEXVS02.erau.edu>, Steven Lehr
<lehrs at erau.edu> wrote:
> I'd think so - should be a simple fix, and would improve the overall
MapServer
> product.  If somebody needs some funds to make this happen, let me
know, I'd
> gladly fund it getting fixed.
>
> Thanks
> Steve
>
>
> -----Original Message-----
> From: Richard Greenwood [mailto:richard.greenwood at gmail.com]
> Sent: Wed 6/17/2009 10:45 PM
> To: Lehr, Steven
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] HTML Legend vs Transparency in Layer
> 
> I've run into exactly the same thing. I don't have any workaround. Is
> it a bug that warrants a report?
>
> Rich
>
>
> On Wed, Jun 17, 2009 at 1:16 AM, Steven Lehr<lehrs at erau.edu> wrote:
>> Hello all...
>>
>> When categorizing layers like zoning, I frequently use levels of
>> transparency (obviously so people can see through them).   However,
this
>> alters the physical color compared to the COLOR attribute of the item
being
>> displayed.  When I generate the Legend, the legend use the COLOR
attribute
>> specified, but does not use the transparency setting from the LAYER;
thus
>> causing the legend to look different from the maps.  Is there away to
fix
>> this?  Can the Legend generated from the LAYER also apply the
TRANSPARENCY
>> so that the legend looks like the map.
>>
>> Thanks for the tips/help.
>>
>> Steve Lehr
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
>

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090618/c0535f4f/attachment.htm>


More information about the MapServer-users mailing list