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

Revision 76, 12.2 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.MapPanel &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.Popup" href="Popup.html" />
26    <link rel="prev" title="GeoExt.LegendPanel" href="LegendPanel.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.MapPanel</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.MapPanel</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="LegendPanel.html"
79                                  title="previous chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">GeoExt.LegendPanel</span></tt></a></p>
80            <h4>Next topic</h4>
81            <p class="topless"><a href="Popup.html"
82                                  title="next chapter"><tt class="docutils literal"><span class="pre">GeoExt.Popup</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-mappanel">
93<h1><a title="GeoExt.MapPanel" class="reference internal" href="#GeoExt.MapPanel"><tt class="xref docutils literal"><span class="pre">GeoExt.MapPanel</span></tt></a><a class="headerlink" href="#geoext-mappanel" 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.Panel">Ext.Panel</a></li>
98</ul>
99</dd>
100<dt>xtype</dt>
101<dd><tt class="docutils literal"><span class="pre">gx_mappanel</span></tt></dd>
102</dl>
103<dl class="class">
104<dt id="GeoExt.MapPanel">
105<em class="property">class </em><tt class="descclassname">GeoExt.</tt><tt class="descname">MapPanel</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#GeoExt.MapPanel" title="Permalink to this definition">¶</a></dt>
106<dd>Create a panel container for a map.</dd></dl>
107
108<div class="section" id="example-use">
109<h2>Example Use<a class="headerlink" href="#example-use" title="Permalink to this headline">¶</a></h2>
110<p>Sample code to create a panel with a new map:</p>
111<div class="highlight-javascript"><div class="highlight"><pre><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>
112    <span class="nx">border</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
113    <span class="nx">renderTo</span><span class="o">:</span> <span class="s2">&quot;div-id&quot;</span><span class="p">,</span>
114    <span class="nx">map</span><span class="o">:</span> <span class="p">{</span>
115        <span class="nx">maxExtent</span><span class="o">:</span> <span class="k">new</span> <span class="nx">OpenLayers</span><span class="p">.</span><span class="nx">Bounds</span><span class="p">(</span><span class="o">-</span><span class="mi">90</span><span class="p">,</span> <span class="o">-</span><span class="mi">45</span><span class="p">,</span> <span class="mi">90</span><span class="p">,</span> <span class="mi">45</span><span class="p">)</span>
116    <span class="p">}</span>
117<span class="p">});</span>
118</pre></div>
119</div>
120<p>Sample code to create a map panel with a bottom toolbar in a Window:</p>
121<div class="highlight-javascript"><div class="highlight"><pre><span class="kd">var</span> <span class="nx">win</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Ext</span><span class="p">.</span><span class="nx">Window</span><span class="p">({</span>
122    <span class="nx">title</span><span class="o">:</span> <span class="s2">&quot;My Map&quot;</span><span class="p">,</span>
123    <span class="nx">items</span><span class="o">:</span> <span class="p">[{</span>
124        <span class="nx">xtype</span><span class="o">:</span> <span class="s2">&quot;gx_mappanel&quot;</span><span class="p">,</span>
125        <span class="nx">bbar</span><span class="o">:</span> <span class="k">new</span> <span class="nx">Ext</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">()</span>
126    <span class="p">}]</span>
127<span class="p">});</span>
128</pre></div>
129</div>
130</div>
131<div class="section" id="config-options">
132<h2>Config Options<a class="headerlink" href="#config-options" title="Permalink to this headline">¶</a></h2>
133<p>Configuration properties in addition to
134those listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Panel">Ext.Panel</a>.</p>
135<dl class="describe">
136<dt>
137<tt class="descname">center</tt></dt>
138<dd><tt class="docutils literal"><span class="pre">OpenLayers.LonLat</span> <span class="pre">or</span> <span class="pre">Array(Number)</span></tt>  A location for the map center.  If
139an array is provided, the first two items should represent x &amp; y coordinates.</dd></dl>
140
141<dl class="describe">
142<dt>
143<tt class="descname">extent</tt></dt>
144<dd><tt class="docutils literal"><span class="pre">OpenLayers.Bounds</span> <span class="pre">or</span> <span class="pre">Array(Number)</span></tt>  An initial extent for the map (used
145if center and zoom are not provided.  If an array, the first four items
146should be minx, miny, maxx, maxy.</dd></dl>
147
148<dl class="describe">
149<dt>
150<tt class="descname">layers</tt></dt>
151<dd><tt class="docutils literal"><span class="pre">GeoExt.data.LayerStore</span> <span class="pre">or</span> <span class="pre">GeoExt.data.GroupingStore</span> <span class="pre">or</span> <span class="pre">Array(OpenLayers.Layer)</span></tt>
152A store holding records. The layers provided here will be added to this
153MapPanel&#8217;s map when it is rendered.</dd></dl>
154
155<dl class="describe">
156<dt>
157<tt class="descname">map</tt></dt>
158<dd><tt class="docutils literal"><span class="pre">OpenLayers.Map</span> <span class="pre">or</span> <span class="pre">Object</span></tt>  A configured map or a configuration object
159for the map constructor.  A configured map will be available after
160construction through the <tt class="xref docutils literal"><span class="pre">map</span></tt> property.</dd></dl>
161
162<dl class="describe">
163<dt>
164<tt class="descname">prettyStateKeys</tt></dt>
165<dd><tt class="docutils literal"><span class="pre">Boolean</span></tt> Set this to true if you want pretty strings in the MapPanel&#8217;s
166state keys. More specifically, layer.name instead of layer.id will be used
167in the state keys if this option is set to true. But in that case you have
168to make sure you don&#8217;t have two layers with the same name. Defaults to
169false.</dd></dl>
170
171<dl class="describe">
172<dt>
173<tt class="descname">zoom</tt></dt>
174<dd><tt class="docutils literal"><span class="pre">Number</span></tt>  An initial zoom level for the map.</dd></dl>
175
176</div>
177<div class="section" id="public-properties">
178<h2>Public Properties<a class="headerlink" href="#public-properties" title="Permalink to this headline">¶</a></h2>
179<p>Public properties in addition to those
180listed for <a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Panel">Ext.Panel</a>.</p>
181<dl class="attribute">
182<dt id="GeoExt.MapPanel.layers">
183<tt class="descclassname">MapPanel.</tt><tt class="descname">layers</tt><a class="headerlink" href="#GeoExt.MapPanel.layers" title="Permalink to this definition">¶</a></dt>
184<dd><a title="GeoExt.data.LayerStore" class="reference external" href="../data/LayerStore.html#GeoExt.data.LayerStore"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerStore</span></tt></a>  A store containing
185<a title="GeoExt.data.LayerRecord" class="reference external" href="../data/LayerRecord.html#GeoExt.data.LayerRecord"><tt class="xref docutils literal"><span class="pre">GeoExt.data.LayerRecord</span></tt></a> objects.</dd></dl>
186
187<dl class="attribute">
188<dt id="GeoExt.MapPanel.map">
189<tt class="descclassname">MapPanel.</tt><tt class="descname">map</tt><a class="headerlink" href="#GeoExt.MapPanel.map" title="Permalink to this definition">¶</a></dt>
190<dd><tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt> or <tt class="docutils literal"><span class="pre">Object</span></tt>  A map or map configuration.</dd></dl>
191
192</div>
193</div>
194
195
196          </div>
197        </div>
198      </div>
199      <div class="clearer"></div>
200    </div>
201    <div class="related">
202      <h3>Navigation</h3>
203      <ul>
204            <li class="right" style="margin-right: 10px">
205              <a href="../../../genindex.html" title="General Index"
206                 accesskey="I">index</a></li>
207            <li class="right" >
208              <a href="../../../modindex.html" title="Global Module Index"
209                 accesskey="M">modules</a> |</li>
210            <li class="right" >
211              <a href="Popup.html" title="GeoExt.Popup"
212                 accesskey="N">next</a> |</li>
213            <li class="right" >
214              <a href="LegendPanel.html" title="GeoExt.LegendPanel"
215                 accesskey="P">previous</a> |</li>
216        <li><a href="../../../index.html">GeoExt</a> &raquo;</li>
217          <li><a href="../../index.html" >API Reference</a> &raquo;</li>
218          <li><a href="../widgets.html" >Widgets</a> &raquo;</li>
219        <li><a href="#"><tt class="docutils literal docutils literal"><span class="pre">GeoExt.MapPanel</span></tt></a></li>
220      </ul>
221    </div>
222
223    <div class="footer">
224      &copy; Copyright 2009-2010, GeoExt Community.
225    </div>
226  </body>
227</html>
Note: See TracBrowser for help on using the repository browser.