Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/docs/lib/GeoExt/widgets/LegendPanel.html @ 76

Revision 76, 8.1 KB checked in by djay, 10 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml">
5  <head>
6    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7   
8    <title>GeoExt.LegendPanel &mdash; GeoExt v1.0</title>
9    <link rel="stylesheet" href="../../../_static/geoext.css" type="text/css" />
10    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
11    <script type="text/javascript">
12      var DOCUMENTATION_OPTIONS = {
13        URL_ROOT:    '../../../',
14        VERSION:     '1.0',
15        COLLAPSE_MODINDEX: false,
16        FILE_SUFFIX: '.html',
17        HAS_SOURCE:  true
18      };
19    </script>
20    <script type="text/javascript" src="../../../_static/jquery.js"></script>
21    <script type="text/javascript" src="../../../_static/doctools.js"></script>
22    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
23    <link rel="top" title="GeoExt v1.0" href="../../../index.html" />
24    <link rel="up" title="Widgets" href="../widgets.html" />
25    <link rel="next" title="GeoExt.MapPanel" href="MapPanel.html" />
26    <link rel="prev" title="GeoExt.LegendImage" href="LegendImage.html" />
27   
28   
29   
30   
31   
32
33  </head>
34  <body>
35    <div class="header">
36        <div class="wrap">
37            <h1 id="logo"><a href="../../../index.html">GeoExt</a></h1>
38            <ul id="top-nav">
39                <li class="first"><a href="../../../docs.html">Documentation</a></li>
40                <li><a href="../../../examples.html">Examples</a></li>
41                <li><a href="../../../downloads.html">Download</a></li>
42                <li><a href="http://trac.geoext.org/">Development</a></li>
43            </ul>
44            <div id="searchbox">
45                <form class="search" action="../../../search.html" method="get">
46                    <input id="searchbox-query" type="text" name="q" size="25" value="Search &hellip;" tabindex="3" onblur="if(this.value=='') this.value='Search &hellip;';" onfocus="if(this.value=='Search &hellip;') this.value='';" />
47                    <input id="searchbox-submit" type="image" value="Search" src="../../../_static/img/search_icon_green.png" />
48                    <input type="hidden" name="check_keywords" value="yes" />
49                    <input type="hidden" name="area" value="default" />
50                </form>
51            </div>
52        </div>
53    </div>
54
55    <div class="related">
56      <h3>Navigation</h3>
57      <ul>
58        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
59          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
60          <li><a href="../widgets.html" accesskey="U">Widgets</a> &raquo;</li>
61        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.LegendPanel</span></tt></a></li>
62      </ul>
63    </div>
64
65      <div class="sphinxsidebar">
66        <div class="sphinxsidebarwrapper">
67            <h3><a href="../../../index.html">Table Of Contents</a></h3>
68            <ul>
69<li><a class="reference external" href="#"><tt class="docutils literal"><span class="pre">GeoExt.LegendPanel</span></tt></a><ul>
70<li><a class="reference external" href="#config-options">Config Options</a></li>
71</ul>
72</li>
73</ul>
74
75            <h4>Previous topic</h4>
76            <p class="topless"><a href="LegendImage.html"
77                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.LegendImage</span></tt></a></p>
78            <h4>Next topic</h4>
79            <p class="topless"><a href="MapPanel.html"
80                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.MapPanel</span></tt></a></p>
81        </div>
82      </div>
83
84
85    <div class="document">
86      <div class="documentwrapper">
87        <div class="bodywrapper">
88          <div class="body">
89           
90  <div class="section" id="geoext-legendpanel">
91<h1><a title="GeoExt.LegendPanel" class="reference internal" href="#GeoExt.LegendPanel"><tt class="xref docutils literal"><span class="pre">GeoExt.LegendPanel</span></tt></a><a class="headerlink" href="#geoext-legendpanel" title="Permalink to this headline">¶</a></h1>
92<dl class="meta docutils">
93<dt>Extends</dt>
94<dd><ul class="first last simple">
95<li><a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Panel">Ext.Panel</a></li>
96</ul>
97</dd>
98<dt>xtype</dt>
99<dd><tt class="docutils literal"><span class="pre">gx_legendpanel</span></tt></dd>
100</dl>
101<dl class="class">
102<dt id="GeoExt.LegendPanel">
103<em class="property">class </em><tt class="descclassname">GeoExt.</tt><tt class="descname">LegendPanel</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#GeoExt.LegendPanel" title="Permalink to this definition">¶</a></dt>
104<dd></dd></dl>
105
106<p>A panel showing legends of all layers in a layer store.
107Depending on the layer type, a legend renderer will be chosen.</p>
108<div class="section" id="config-options">
109<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
110<p>Configuration properties in addition to
111those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Panel">Ext.Panel</a>.</p>
112<dl class="describe">
113<dt>
114<tt class="descname">dynamic</tt></dt>
115<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt>
116If false the LegendPanel will not listen to the add, remove and change
117events of the LayerStore. So it will load with the initial state of
118the LayerStore and not change anymore.</dd></dl>
119
120<dl class="describe">
121<dt>
122<tt class="descname">filter</tt></dt>
123<dd><p><tt class="docutils literal"><span class="pre">Function</span></tt>
124A function, called in the scope of the legend panel, with a layer record
125as argument. Is expected to return true for layers to be displayed, false
126otherwise. By default, all layers will be displayed.</p>
127<div class="highlight-javascript"><div class="highlight"><pre><span class="nx">filter</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">record</span><span class="p">)</span> <span class="p">{</span>
128    <span class="k">return</span> <span class="nx">record</span><span class="p">.</span><span class="nx">getLayer</span><span class="p">().</span><span class="nx">isBaseLayer</span><span class="p">;</span>
129<span class="p">}</span>
130</pre></div>
131</div>
132</dd></dl>
133
134<dl class="describe">
135<dt>
136<tt class="descname">layerStore</tt></dt>
137<dd><tt class="docutils literal"><span class="pre">GeoExt.data.LayerStore</span></tt>
138The layer store containing layers to be displayed in the legend
139container. If not provided it will be taken from the MapPanel.</dd></dl>
140
141<dl class="describe">
142<dt>
143<tt class="descname">preferredTypes</tt></dt>
144<dd><tt class="docutils literal"><span class="pre">Array(String)</span></tt> An array of preferred legend types.</dd></dl>
145
146</div>
147</div>
148
149
150          </div>
151        </div>
152      </div>
153      <div class="clearer"></div>
154    </div>
155    <div class="related">
156      <h3>Navigation</h3>
157      <ul>
158            <li class="right" style="margin-right: 10px">
159              <a href="../../../genindex.html" title="General Index"
160                 accesskey="I">index</a></li>
161            <li class="right" >
162              <a href="../../../modindex.html" title="Global Module Index"
163                 accesskey="M">modules</a> |</li>
164            <li class="right" >
165              <a href="MapPanel.html" title="GeoExt.MapPanel"
166                 accesskey="N">next</a> |</li>
167            <li class="right" >
168              <a href="LegendImage.html" title="GeoExt.LegendImage"
169                 accesskey="P">previous</a> |</li>
170        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
171          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
172          <li><a href="../widgets.html" >Widgets</a> &raquo;</li>
173        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.LegendPanel</span></tt></a></li>
174      </ul>
175    </div>
176
177    <div class="footer">
178      &copy; Copyright 2009-2010, GeoExt Community.
179    </div>
180  </body>
181</html>
Note: See TracBrowser for help on using the repository browser.