[ka-Map-users] Opacity control in legend
Paul Spencer
pspencer at dmsolutions.ca
Wed Jun 15 08:32:25 EDT 2005
Jacob,
I've actually changed the CVS version to use a legend that is built
entirely on the client side (it looks and works the same but is much
better performance so far). In the process, I took out the opacity
control from the layers in the legend because I don't think this is a
generally useful function ... in its place, I've set it up to read
opacity from the metadata of the first layer in each group and use that
to set the opacity of each group of layers.
It would be reasonably easy to modify kaLegend.js to add back in some
form of layer opacity control. Ideally, it would be some sort of slider
I guess ... I've played around with the Walter Zorn libraries for
drawing and dragging, they work well.
If you have a real need for this, you could probably add an opacity
control reasonably easily by modifying kaLegend.js to build the
additional images and event handlers to replicate the original way that
I had implemented this.
I may have time to add some sort of sliding opacity controller as an
option while at MUM3 ... in between a few beers, I suspect ;)
Cheers
Paul
Delfos, Jacob wrote:
> Hi all,
>
> I'm trying to put together a site that makes use of the opacity setting
> in the legend, but it seems that the CVS version is not configured to
> make use if it by default. I'm having some trouble figuring out how it
> all fits together. The transparency sits in legend_template.php, which
> uses legend_template.html. But how do I get the site to use it? I tried
> modifying kaLegend.js, but that didn't do the trick.
>
> Paul.... How did you do it? :)
>
> Regards,
>
> Jacob
>
>
> *JACOB DELFOS
> SPATIAL INFORMATION ANALYST
> *Maunsell Australia Pty Ltd
> 629 Newcastle Street, Leederville, WA 6007
> PO Box 81, Leederville, WA 6902
> Western Australia
> ABN 20 093 846 925
>
> Tel + 61 8 9281 6185
> Fax + 61 8 9281 6297
> _jacob.delfos at maunsell.com_
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list