[mapserver-users] HTML Legend vs Transparency in Layer

Bob Basques Bob.Basques at ci.stpaul.mn.us
Thu Jun 18 12:10:19 PDT 2009


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/6f810f6f/attachment.htm>


More information about the MapServer-users mailing list