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/data/LayerStore.html @ 81

Revision 76, 11.7 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.data.LayerStore &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.data" href="../data.html" />
25    <link rel="next" title="GeoExt.data.PrintPage" href="PrintPage.html" />
26    <link rel="prev" title="GeoExt.data.LayerRecord" href="LayerRecord.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="../data.html" accesskey="U"><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> &raquo;</li>
61        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.LayerStore</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.data.LayerStore</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-properties">Public Properties</a></li>
73</ul>
74</li>
75</ul>
76
77            <h4>Previous topic</h4>
78            <p class="topless"><a href="LayerRecord.html"
79                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a></p>
80            <h4>Next topic</h4>
81            <p class="topless"><a href="PrintPage.html"
82                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.data.PrintPage</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-data-layerstore">
93<h1><a title="GeoExt.data.LayerStore" class="reference internal" href="#GeoExt.data.LayerStore"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerStore</span></tt></a><a class="headerlink" href="#geoext-data-layerstore" 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.data.Store">Ext.data.Store</a></li>
98</ul>
99</dd>
100</dl>
101<dl class="class">
102<dt id="GeoExt.data.LayerStore">
103<em class="property">class </em><tt class="descclassname">GeoExt.data.</tt><tt class="descname">LayerStore</tt><a class="headerlink" href="#GeoExt.data.LayerStore" title="Permalink to this definition">¶</a></dt>
104<dd>A store that contains a cache of <a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a>
105objects.</dd></dl>
106
107<div class="section" id="example-use">
108<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
109<p>Sample to create a new store containing a cache of
110<a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> instances derived from map layers.</p>
111<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">store</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GeoExt</span><span class="p">.</span><span class="nx">data</span><span class="p">.</span><span class="nx">LayerStore</span><span class="p">({</span>
112    <span class="nx">map</span><span class="o">:</span> <span class="nx">myMap</span><span class="p">,</span>
113    <span class="nx">layers</span><span class="o">:</span> <span class="nx">myLayers</span>
114<span class="p">});</span>
115</pre></div>
116</div>
117</div>
118<div class="section" id="config-options">
119<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
120<p>Configuration properties in addition to
121those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store">Ext.data.Store</a>.</p>
122<dl class="describe">
123<dt>
124<tt class="descname">fields</tt></dt>
125<dd><tt class="docutils literal"><span class="pre">Array</span></tt>
126If provided a custom layer record type with additional fields will be
127used. Default fields for every layer record are <cite>layer</cite>
128(<tt class="docutils literal"><span class="pre">OpenLayers.Layer</span></tt>) <cite>title</cite> (<tt class="docutils literal"><span class="pre">String</span></tt>). The value of this option is
129either a field definition objects as passed to the
130<a title="GeoExt.data.LayerRecord.create" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord.create"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord.create()</span></tt></a> function or a
131<a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> constructor created using
132<a title="GeoExt.data.LayerRecord.create" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord.create"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord.create()</span></tt></a>.</dd></dl>
133
134<dl class="describe">
135<dt>
136<tt class="descname">initDir</tt></dt>
137<dd><tt class="docutils literal"><span class="pre">Number</span></tt>
138Bitfields specifying the direction to use for the initial sync between
139the map and the store, if set to 0 then no initial sync is done.
140Defaults to <tt class="docutils literal"><span class="pre">GeoExt.data.LayerStore.MAP_TO_STORE|GeoExt.data.LayerStore.STORE_TO_MAP</span></tt></dd></dl>
141
142<dl class="describe">
143<dt>
144<tt class="descname">layers</tt></dt>
145<dd><tt class="docutils literal"><span class="pre">Array(OpenLayers.Layer)</span></tt>
146Layers that will be added to the store (and the map, depending on the
147value of the <tt class="docutils literal"><span class="pre">initDir</span></tt> option.</dd></dl>
148
149<dl class="describe">
150<dt>
151<tt class="descname">map</tt></dt>
152<dd><tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt>
153Map that this store will be in sync with. If not provided, the
154store will not be bound to a map.</dd></dl>
155
156<dl class="describe">
157<dt>
158<tt class="descname">reader</tt></dt>
159<dd><tt class="docutils literal"><span class="pre">Ext.data.DataReader</span></tt> The reader used to produce
160<a title="GeoExt.data.LayerRecord" class="reference external" href="LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> objects from <tt class="docutils literal"><span class="pre">OpenLayers.Layer</span></tt>
161objects.  If not provided, a <a title="GeoExt.data.LayerReader" class="reference external" href="LayerReader.html#GeoExt.data.LayerReader"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerReader</span></tt></a> will be
162used.</dd></dl>
163
164</div>
165<div class="section" id="public-properties">
166<h2>Public Properties<a class="headerlink" href="#public-properties" title="Permalink to this headline">¶</a></h2>
167<p>Public properties in addition to those
168listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store">Ext.data.Store</a>.</p>
169<dl class="attribute">
170<dt id="GeoExt.data.LayerStore.map">
171<tt class="descclassname">LayerStore.</tt><tt class="descname">map</tt><a class="headerlink" href="#GeoExt.data.LayerStore.map" title="Permalink to this definition">¶</a></dt>
172<dd><tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt>
173Map that the store is synchronized with, if any.</dd></dl>
174
175</div>
176</div>
177
178
179          </div>
180        </div>
181      </div>
182      <div class="clearer"></div>
183    </div>
184    <div class="related">
185      <h3>Navigation</h3>
186      <ul>
187            <li class="right" style="margin-right: 10px">
188              <a href="../../../genindex.html" title="General Index"
189                 accesskey="I">index</a></li>
190            <li class="right" >
191              <a href="../../../modindex.html" title="Global Module Index"
192                 accesskey="M">modules</a> |</li>
193            <li class="right" >
194              <a href="PrintPage.html" title="GeoExt.data.PrintPage"
195                 accesskey="N">next</a> |</li>
196            <li class="right" >
197              <a href="LayerRecord.html" title="GeoExt.data.LayerRecord"
198                 accesskey="P">previous</a> |</li>
199        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
200          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
201          <li><a href="../data.html" ><tt class="docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal docutils literal"><span class="pre">GeoExt.data</span></tt></a> &raquo;</li>
202        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.data.LayerStore</span></tt></a></li>
203      </ul>
204    </div>
205
206    <div class="footer">
207      &copy; Copyright 2009-2010, GeoExt Community.
208    </div>
209  </body>
210</html>
Note: See TracBrowser for help on using the repository browser.