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) | |
---|---|
|
Line | |
---|---|
1 | |
2 | .. currentmodule:: GeoExt |
3 | |
4 | :class:`GeoExt.ZoomSliderTip` |
5 | ================================================================================ |
6 | |
7 | |
8 | .. cssclass:: meta |
9 | |
10 | |
11 | Extends |
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 | |
26 | Example Use |
27 | ----------- |
28 | |
29 | Sample 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 | |
45 | Config Options |
46 | -------------- |
47 | |
48 | Configuration properties in addition to |
49 | those 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.