<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Lucia,<br>
    <br>
    &nbsp; Could you share a small minimized demo (ideally a live one) of
    what you're doing ?&nbsp; That way, it would be easier to help.<br>
    <br>
    Regards,<br>
    <br>
    Alexandre<br>
    <br>
    <br>
    On 11-03-30 06:01 AM, Morper-Busch, Lucia wrote:
    <blockquote
      cite="mid:7506863B0141334AA8B9FAAAC6D703B001F6AD67@MAIL2.plus.sbg.ac.at"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-MailFormatvorlage20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">Hello GeoExt users, <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">after long searching for a solution I found the
            <b>OpacitySliderPlugin</b>, now renamed to <b>ContextMenuPlugin</b>
            to integrate into the LayerTree.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">I inserted the <b>ContextMenuPlugin</b> with a
            <b>LayerOpacitySliderTip</b>-Plugin in the
            LayerTreeBuilder.js and now it does what I want: <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">Code snippet of LayerTreeBuilder.js:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: black;" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">initComponent: function(){<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp;
            this.addEvents(this.CUSTOM_EVENTS);<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; this.plugins = this.plugins ||
            [];<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; this.plugins.push({ptype:
            "gx_treenodecomponent"});<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; this.plugins.push(new
            GeoExt.ux.plugins.LayerTreeBuilderNodeAgent());<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; //Context menu
            with opacity slider, added by Lucia:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US"> &nbsp;&nbsp;&nbsp;
            this.plugins.push(new GeoExt.tree.ContextMenuPlugin({ <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            sliderOptions:{<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            aggressive: true,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            plugins: new GeoExt.LayerOpacitySliderTip()<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; })<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;; color: red;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; ); </span><span
            style="font-family: &quot;Courier New&quot;;" lang="EN-US">&nbsp;
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;
            GeoExt.ux.tree.LayerTreeBuilder.superclass.initComponent.call(this);<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; if(!this.layerStore) {<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;this.layerStore =
            GeoExt.MapPanel.guess().layers;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; this.layerStore.on({<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;"add": this.onLayerAdded,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;"remove":
            this.onLayerRemoved,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;scope: this<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; });<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US"> &nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp; this.layerStore.treeBuilder =
            this;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family: &quot;Courier
            New&quot;;" lang="EN-US">},<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><u><span style="color: rgb(31, 73, 125);"
              lang="EN-US">Three remarks: <o:p></o:p></span></u></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">1. It&#8217;s hard to find new developments. I&#8217;m
            searching always with key words like &#8220;opacity slider&#8221;
            &#8220;layertree&#8221; and similar. In my opinion there is a lack of
            finding the latest improvements. The code examples are not
            linked to these key words, isn&#8217;t it?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">2.It would be nice for a <b>boolean option</b>
            of the <b>LayerTreeBuilder</b> to set &#8220;ContextMenu:
            true/false&#8221;, without manipulating the code of the
            LayerTreeBuilder.js itself. Maybe also with <b>SliderOptions</b>
            for a possible integrating of the very useful <b>LayerOpacitySliderTip</b>.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">3. There is a Error executing the new code: <b>"this.dom.style
              is null or not an object"</b> referring to ext-all.js.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">Does anybody know how to fix it?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">Thanks<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US">Lucia<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <div>
          <p class="MsoNormal" style="margin-bottom: 1pt;"><b><span
                style="font-size: 8pt; font-family:
                &quot;Verdana&quot;,&quot;sans-serif&quot;; color:
                rgb(54, 95, 145);" lang="EN-US">Dipl.-Geogr. Lucia
                Morper-Busch</span></b><b><span style="font-size: 8pt;
                font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;
                color: rgb(31, 73, 125);" lang="EN-US"> | </span></b><b><span
                style="font-size: 8pt; font-family:
                &quot;Verdana&quot;,&quot;sans-serif&quot;; color:
                rgb(192, 0, 0);" lang="EN-US">Researcher</span></b><b><span
                style="font-size: 8pt; font-family:
                &quot;Verdana&quot;,&quot;sans-serif&quot;; color:
                rgb(31, 73, 125);" lang="EN-US"><o:p></o:p></span></b></p>
          <p class="MsoNormal" style="margin-bottom: 1pt;"><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
              lang="EN-US">University of Salzburg | Centre for
              Geoinformatics - Z_GIS<o:p></o:p></span></p>
          <p class="MsoNormal" style="margin-bottom: 1pt;"><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
              lang="EN-US">Schillerstr.30 | Techno-Z, Block 15, 3rd
              floor | 5020 Salzburg, Austria<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
              lang="EN-US">Phone +43 (0)662 8044 5298 | Fax +43 (0)662
              8044 5260<o:p></o:p></span></p>
          <p class="MsoNormal"><b><i><span style="font-size: 8pt;
                  font-family:
                  &quot;Verdana&quot;,&quot;sans-serif&quot;; color:
                  gray;" lang="EN-US">&gt; <a moz-do-not-send="true"
                    href="http://www.zgis.at/research"><span
                      style="color: gray; text-decoration: none;">Z_GIS&#8230;experts
                      for the spatial view</span></a><o:p></o:p></span></i></b></p>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="DE">Von:</span></b><span
                style="font-size: 10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;;" lang="DE">
                <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@geoext.org">users-bounces@geoext.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:users-bounces@geoext.org">mailto:users-bounces@geoext.org</a>] <b>Im Auftrag von </b>Morper-Busch,
                Lucia<br>
                <b>Gesendet:</b> Dienstag, 29. M&auml;rz 2011 15:06<br>
                <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@geoext.org">users@geoext.org</a><br>
                <b>Betreff:</b> [Users] OpacitySlider for each Layer in
                a LayerTree(LayerTreeBuilder)<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span lang="EN-US">Hi GeoExt users,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I have a second
            question:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Do anybody know how to
            combine LayerTreeBuilder with a OpacitySlider for each
            visible layer in the tree?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I managed only either
            legend or OpacitySlider, but I want both!<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thank you<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Lucia<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style="margin-bottom: 1pt;"><b><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: rgb(54,
              95, 145);" lang="EN-US">Dipl.-Geogr. Lucia Morper-Busch</span></b><b><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: rgb(31,
              73, 125);" lang="EN-US"> | </span></b><b><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color:
              rgb(192, 0, 0);" lang="EN-US">Researcher</span></b><b><span
              style="font-size: 8pt; font-family:
              &quot;Verdana&quot;,&quot;sans-serif&quot;; color: rgb(31,
              73, 125);" lang="EN-US"><o:p></o:p></span></b></p>
        <p class="MsoNormal" style="margin-bottom: 1pt;"><span
            style="font-size: 8pt; font-family:
            &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
            lang="EN-US">University of Salzburg | Centre for
            Geoinformatics - Z_GIS<o:p></o:p></span></p>
        <p class="MsoNormal" style="margin-bottom: 1pt;"><span
            style="font-size: 8pt; font-family:
            &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
            lang="EN-US">Schillerstr.30 | Techno-Z, Block 15, 3rd floor
            | 5020 Salzburg, Austria<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 8pt; font-family:
            &quot;Verdana&quot;,&quot;sans-serif&quot;; color: gray;"
            lang="EN-US">Phone +43 (0)662 8044 5298 | Fax +43 (0)662
            8044 5260<o:p></o:p></span></p>
        <p class="MsoNormal"><b><i><span style="font-size: 8pt;
                font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;
                color: gray;" lang="EN-US">&gt; <a
                  moz-do-not-send="true"
                  href="http://www.zgis.at/research"><span style="color:
                    gray; text-decoration: none;">Z_GIS&#8230;experts for the
                    spatial view</span></a><o:p></o:p></span></i></b></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre Dub&eacute;
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
  </body>
</html>