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/Popup.html @ 76

Revision 76, 11.2 KB checked in by djay, 12 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.Popup &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.PrintMapPanel" href="PrintMapPanel.html" />
26    <link rel="prev" title="GeoExt.MapPanel" href="MapPanel.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.Popup</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.Popup</span></tt></a><ul>
70<li><a class="reference external" href="#example-use">Example Use</a></li>
71<li><a class="reference external" href="#config-options">Config Options</a></li>
72<li><a class="reference external" href="#public-methods">Public Methods</a></li>
73</ul>
74</li>
75</ul>
76
77            <h4>Previous topic</h4>
78            <p class="topless"><a href="MapPanel.html"
79                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.MapPanel</span></tt></a></p>
80            <h4>Next topic</h4>
81            <p class="topless"><a href="PrintMapPanel.html"
82                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.PrintMapPanel</span></tt></a></p>
83        </div>
84      </div>
85
86
87    <div class="document">
88      <div class="documentwrapper">
89        <div class="bodywrapper">
90          <div class="body">
91           
92  <div class="section" id="geoext-popup">
93<h1><a title="GeoExt.Popup" class="reference internal" href="#GeoExt.Popup"><tt class="xref docutils literal"><span class="pre">GeoExt.Popup</span></tt></a><a class="headerlink" href="#geoext-popup" title="Permalink to this headline">¶</a></h1>
94<dl class="meta docutils">
95<dt>Extends</dt>
96<dd><ul class="first last simple">
97<li><a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Window">Ext.Window</a></li>
98</ul>
99</dd>
100<dt>xtype</dt>
101<dd><tt class="docutils literal"><span class="pre">gx_popup</span></tt></dd>
102</dl>
103<dl class="class">
104<dt id="GeoExt.Popup">
105<em class="property">class </em><tt class="descclassname">GeoExt.</tt><tt class="descname">Popup</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#GeoExt.Popup" title="Permalink to this definition">¶</a></dt>
106<dd>Popups are a specialized Window that supports anchoring
107to a particular location in a MapPanel.  When a popup
108is anchored to a location, that means that the popup
109will visibly point to the location on the map, and move
110accordingly when the map is panned or zoomed.</dd></dl>
111
112<div class="section" id="example-use">
113<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
114<p>Sample code to create a popup anchored to a feature:</p>
115<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">popup</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">Popup</span><span class="p">({</span>
116    <span class="nx">title</span><span class="o">:</span> <span class="s2">&quot;My Popup&quot;</span><span class="p">,</span>
117    <span class="nx">location</span><span class="o">:</span> <span class="nx">feature</span><span class="p">,</span>
118    <span class="nx">width</span><span class="o">:</span> <span class="mi">200</span><span class="p">,</span>
119    <span class="nx">html</span><span class="o">:</span> <span class="s2">&quot;&lt;div&gt;Popup content&lt;/div&gt;&quot;</span><span class="p">,</span>
120    <span class="nx">collapsible</span><span class="o">:</span> <span class="kc">true</span>
121<span class="p">});</span>
122</pre></div>
123</div>
124</div>
125<div class="section" id="config-options">
126<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
127<p>Configuration properties in addition to
128those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Window">Ext.Window</a>.</p>
129<dl class="describe">
130<dt>
131<tt class="descname">ancCls</tt></dt>
132<dd><tt class="docutils literal"><span class="pre">String</span></tt>  CSS class name for the popup&#8217;s anchor.</dd></dl>
133
134<dl class="describe">
135<dt>
136<tt class="descname">anchored</tt></dt>
137<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt>  The popup begins anchored to its location.  Default is
138<tt class="docutils literal"><span class="pre">true</span></tt>.</dd></dl>
139
140<dl class="describe">
141<dt>
142<tt class="descname">location</tt></dt>
143<dd><tt class="docutils literal"><span class="pre">OpenLayers.Feature.Vector</span></tt> or <tt class="docutils literal"><span class="pre">OpenLayers.LonLat</span></tt> or
144<tt class="docutils literal"><span class="pre">OpenLayers.Pixel</span></tt> or <tt class="docutils literal"><span class="pre">OpenLayers.Geometry</span></tt> A location for this
145popup&#8217;s anchor.</dd></dl>
146
147<dl class="describe">
148<dt>
149<tt class="descname">map</tt></dt>
150<dd><tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt> or <a title="GeoExt.MapPanel" class="reference external" href="MapPanel.html#GeoExt.MapPanel"><tt class="xref docutils literal"><span class="pre">GeoExt.MapPanel</span></tt></a>
151The map this popup will be anchored to (only required if <tt class="docutils literal"><span class="pre">anchored</span></tt>
152is set to true and the map cannot be derived from the <tt class="docutils literal"><span class="pre">location</span></tt>&#8216;s
153layer.</dd></dl>
154
155<dl class="describe">
156<dt>
157<tt class="descname">panIn</tt></dt>
158<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt> The popup should pan the map so that the popup is
159fully in view when it is rendered.  Default is <tt class="docutils literal"><span class="pre">true</span></tt>.</dd></dl>
160
161<dl class="describe">
162<dt>
163<tt class="descname">popupCls</tt></dt>
164<dd><tt class="docutils literal"><span class="pre">String</span></tt> CSS class name for the popup DOM elements.  Default is
165&#8220;gx-popup&#8221;.</dd></dl>
166
167<dl class="describe">
168<dt>
169<tt class="descname">unpinnable</tt></dt>
170<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt> The popup should have a &#8220;unpin&#8221; tool that unanchors it from
171its location.  Default is <tt class="docutils literal"><span class="pre">true</span></tt>.</dd></dl>
172
173</div>
174<div class="section" id="public-methods">
175<h2>Public Methods<a class="headerlink" href="#public-methods" title="Permalink to this headline">¶</a></h2>
176<p>Public methods in addition to those
177listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Window">Ext.Window</a>.</p>
178<dl class="method">
179<dt id="GeoExt.Popup.setSize">
180<tt class="descclassname">Popup.</tt><tt class="descname">setSize</tt><big>(</big><big>)</big><a class="headerlink" href="#GeoExt.Popup.setSize" title="Permalink to this definition">¶</a></dt>
181<dd><table class="docutils field-list" frame="void" rules="none">
182<col class="field-name" />
183<col class="field-body" />
184<tbody valign="top">
185<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
186<li><em>w</em> &#8211; <tt class="docutils literal"><span class="pre">Integer</span></tt></li>
187<li><em>h</em> &#8211; <tt class="docutils literal"><span class="pre">Integer</span></tt></li>
188</ul>
189</td>
190</tr>
191</tbody>
192</table>
193<p>Sets the size of the popup, taking into account the size of the anchor.</p>
194</dd></dl>
195
196</div>
197</div>
198
199
200          </div>
201        </div>
202      </div>
203      <div class="clearer"></div>
204    </div>
205    <div class="related">
206      <h3>Navigation</h3>
207      <ul>
208            <li class="right" style="margin-right: 10px">
209              <a href="../../../genindex.html" title="General Index"
210                 accesskey="I">index</a></li>
211            <li class="right" >
212              <a href="../../../modindex.html" title="Global Module Index"
213                 accesskey="M">modules</a> |</li>
214            <li class="right" >
215              <a href="PrintMapPanel.html" title="GeoExt.PrintMapPanel"
216                 accesskey="N">next</a> |</li>
217            <li class="right" >
218              <a href="MapPanel.html" title="GeoExt.MapPanel"
219                 accesskey="P">previous</a> |</li>
220        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
221          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
222          <li><a href="../widgets.html" >Widgets</a> &raquo;</li>
223        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.Popup</span></tt></a></li>
224      </ul>
225    </div>
226
227    <div class="footer">
228      &copy; Copyright 2009-2010, GeoExt Community.
229    </div>
230  </body>
231</html>
Note: See TracBrowser for help on using the repository browser.