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/_sources/lib/GeoExt/widgets/tips/ZoomSliderTip.txt @ 76

Revision 76, 1.5 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1
2.. currentmodule:: GeoExt
3
4:class:`GeoExt.ZoomSliderTip`
5================================================================================
6
7
8.. cssclass:: meta
9
10
11Extends
12    * `Ext.Tip <http://dev.sencha.com/deploy/dev/docs/?class=Ext.Tip>`_
13    * :class:`GeoExt.SliderTip`
14
15
16
17
18
19
20.. class:: ZoomSliderTip(config)
21
22    Create a slider tip displaying :class:`GeoExt.ZoomSlider` values.
23
24
25
26Example Use
27-----------
28
29Sample code to create a slider tip to display scale and resolution:
30
31.. code-block:: javascript
32
33    var slider = new GeoExt.ZoomSlider({
34        renderTo: document.body,
35        width: 200,
36        map: map,
37        plugins: new GeoExt.ZoomSliderTip({
38            template: "Scale: 1 : {scale}<br>Resolution: {resolution}"
39        })
40    });
41
42   
43
44
45Config Options
46--------------
47
48Configuration properties in addition to
49those listed for `Ext.Tip <http://dev.sencha.com/deploy/dev/docs/?class=Ext.Tip>`_.
50
51
52.. describe:: hover
53
54    ``Boolean``
55    Display the tip when hovering over the thumb.  If ``false``, tip will
56    only be displayed while dragging.  Default is ``true``.
57
58.. describe:: minWidth
59
60    ``Number``
61    Minimum width of the tip.  Default is 10.
62
63.. describe:: offsets
64
65    ``Array(Number)``
66    A two item list that provides x, y offsets for the tip.  Default is
67    [0, -10].
68
69.. describe:: template
70
71    ``String``
72    Template for the tip. Can be customized using the following keywords in
73    curly braces:
74   
75    * ``zoom`` - the zoom level
76    * ``resolution`` - the resolution
77    * ``scale`` - the scale denominator
78
79
80
81
82
83
84
85
86
Note: See TracBrowser for help on using the repository browser.