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

Revision 76, 11.4 KB checked in by djay, 7 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.state.PermalinkProvider &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="GeoExt.state" href="../state.html" />
25    <link rel="next" title="Ext Overrides" href="../../overrides.html" />
26    <link rel="prev" title="GeoExt.state" href="../state.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="../state.html" accesskey="U"><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.state</span></tt></a> &raquo;</li>
61        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.state.PermalinkProvider</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.state.PermalinkProvider</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="../state.html"
79                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.state</span></tt></a></p>
80            <h4>Next topic</h4>
81            <p class="topless"><a href="../../overrides.html"
82                                  title="next chapter">Ext Overrides</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-state-permalinkprovider">
93<h1><a title="GeoExt.state.PermalinkProvider" class="reference internal" href="#GeoExt.state.PermalinkProvider"><tt class="xref docutils literal"><span class="pre">GeoExt.state.PermalinkProvider</span></tt></a><a class="headerlink" href="#geoext-state-permalinkprovider" 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.state.Provider">Ext.state.Provider</a></li>
98</ul>
99</dd>
100</dl>
101<dl class="class">
102<dt id="GeoExt.state.PermalinkProvider">
103<em class="property">class </em><tt class="descclassname">GeoExt.state.</tt><tt class="descname">PermalinkProvider</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#GeoExt.state.PermalinkProvider" title="Permalink to this definition">¶</a></dt>
104<dd>Create a permalink provider.</dd></dl>
105
106<div class="section" id="example-use">
107<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
108<p>Sample code displaying a new permalink each time the map is moved.</p>
109<div class="highlight-javascript"><div class="highlight"><pre><span class="c1">// create permalink provider</span>
110<span class="kd">var</span> <span class="nx">permalinkProvider</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">state</span><span class="p">.</span><span class="nx">PermalinkProvider</span><span class="p">();</span>
111
112<span class="c1">// set it in the state manager</span>
113<span class="nx">Ext</span><span class="p">.</span><span class="nx">state</span><span class="p">.</span><span class="nx">Manager</span><span class="p">.</span><span class="nx">setProvider</span><span class="p">(</span><span class="nx">permalinkProvider</span><span class="p">);</span>
114
115<span class="c1">// create a map panel, and make it stateful</span>
116<span class="kd">var</span> <span class="nx">mapPanel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">MapPanel</span><span class="p">({</span>
117    <span class="nx">renderTo</span><span class="o">:</span> <span class="s2">&quot;map&quot;</span><span class="p">,</span>
118    <span class="nx">layers</span><span class="o">:</span> <span class="p">[</span>
119        <span class="k">new</span> <span class="nx">OpenLayers</span><span class="p">.</span><span class="nx">Layer</span><span class="p">.</span><span class="nx">WMS</span><span class="p">(</span>
120            <span class="s2">&quot;Global Imagery&quot;</span><span class="p">,</span>
121            <span class="s2">&quot;http://maps.opengeo.org/geowebcache/service/wms&quot;</span><span class="p">,</span>
122            <span class="p">{</span><span class="nx">layers</span><span class="o">:</span> <span class="s2">&quot;bluemarble&quot;</span><span class="p">}</span>
123        <span class="p">)</span>
124    <span class="p">],</span>
125    <span class="nx">stateId</span><span class="o">:</span> <span class="s2">&quot;map&quot;</span><span class="p">,</span>
126    <span class="nx">prettyStateKeys</span><span class="o">:</span> <span class="kc">true</span> <span class="c1">// for pretty permalinks</span>
127<span class="p">});</span>
128
129<span class="c1">// display permalink each time state is changed</span>
130<span class="nx">permalinkProvider</span><span class="p">.</span><span class="nx">on</span><span class="p">({</span>
131    <span class="nx">statechanged</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">provider</span><span class="p">,</span> <span class="nx">name</span><span class="p">,</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
132        <span class="nx">alert</span><span class="p">(</span><span class="nx">provider</span><span class="p">.</span><span class="nx">getLink</span><span class="p">());</span>
133    <span class="p">}</span>
134<span class="p">});</span>
135</pre></div>
136</div>
137</div>
138<div class="section" id="config-options">
139<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
140<p>Configuration properties in addition to
141those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.state.Provider">Ext.state.Provider</a>.</p>
142<dl class="describe">
143<dt>
144<tt class="descname">encodeType</tt></dt>
145<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt> Specifies whether type of state values should be encoded
146and decoded. Set it to false if you work with components that don&#8217;t
147require encoding types, and want pretty permalinks. Defaults to true.</dd></dl>
148
149</div>
150<div class="section" id="public-methods">
151<h2>Public Methods<a class="headerlink" href="#public-methods" title="Permalink to this headline">¶</a></h2>
152<p>Public methods in addition to those
153listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.state.Provider">Ext.state.Provider</a>.</p>
154<dl class="method">
155<dt id="GeoExt.state.PermalinkProvider.getLink">
156<tt class="descclassname">PermalinkProvider.</tt><tt class="descname">getLink</tt><big>(</big><big>)</big><a class="headerlink" href="#GeoExt.state.PermalinkProvider.getLink" title="Permalink to this definition">¶</a></dt>
157<dd><table class="docutils field-list" frame="void" rules="none">
158<col class="field-name" />
159<col class="field-body" />
160<tbody valign="top">
161<tr class="field"><th class="field-name">Parameter:</th><td class="field-body"><em>base</em> &#8211; <tt class="docutils literal"><span class="pre">String</span></tt> The base URL, optional.</td>
162</tr>
163<tr class="field"><th class="field-name">Returns:</th><td class="field-body"><tt class="docutils literal"><span class="pre">String</span></tt> The permalink.</td>
164</tr>
165</tbody>
166</table>
167<p>Return the permalink corresponding to the current state.</p>
168</dd></dl>
169
170</div>
171</div>
172
173
174          </div>
175        </div>
176      </div>
177      <div class="clearer"></div>
178    </div>
179    <div class="related">
180      <h3>Navigation</h3>
181      <ul>
182            <li class="right" style="margin-right: 10px">
183              <a href="../../../genindex.html" title="General Index"
184                 accesskey="I">index</a></li>
185            <li class="right" >
186              <a href="../../../modindex.html" title="Global Module Index"
187                 accesskey="M">modules</a> |</li>
188            <li class="right" >
189              <a href="../../overrides.html" title="Ext Overrides"
190                 accesskey="N">next</a> |</li>
191            <li class="right" >
192              <a href="../state.html" title="GeoExt.state"
193                 accesskey="P">previous</a> |</li>
194        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
195          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
196          <li><a href="../state.html" ><tt class="docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.state</span></tt></a> &raquo;</li>
197        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.state.PermalinkProvider</span></tt></a></li>
198      </ul>
199    </div>
200
201    <div class="footer">
202      &copy; Copyright 2009-2010, GeoExt Community.
203    </div>
204  </body>
205</html>
Note: See TracBrowser for help on using the repository browser.