source:
trunk/workshop-routing-foss4g/web/GeoExt/docs/_sources/lib/GeoExt/data/ScaleStore.txt
@
76
Revision 76, 1.7 KB checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 1 | |
2 | .. currentmodule:: GeoExt.data | |
3 | ||
4 | :class:`GeoExt.data.ScaleStore` | |
5 | ================================================================================ | |
6 | ||
7 | ||
8 | .. cssclass:: meta | |
9 | ||
10 | ||
11 | Extends | |
12 | * `Ext.data.Store <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store>`_ | |
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | .. class:: ScaleStore | |
21 | ||
22 | A store that contains a cache of available zoom levels. The store can | |
23 | optionally be kept synchronized with an ``OpenLayers.Map`` or | |
24 | :class:`GeoExt.MapPanel` object. | |
25 | ||
26 | Records have the following fields: | |
27 | ||
28 | * level - ``Number`` The zoom level. | |
29 | * scale - ``Number`` The scale denominator. | |
30 | * resolution - ``Number`` The map units per pixel. | |
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | Config Options | |
37 | -------------- | |
38 | ||
39 | Configuration properties in addition to | |
40 | those listed for `Ext.data.Store <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store>`_. | |
41 | ||
42 | ||
43 | .. describe:: map | |
44 | ||
45 | ``OpenLayers.Map`` or :class:`GeoExt.MapPanel` | |
46 | Optional map or map panel from which to derive scale values. | |
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | Public Methods | |
54 | -------------- | |
55 | ||
56 | Public methods in addition to those | |
57 | listed for `Ext.data.Store <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store>`_. | |
58 | ||
59 | ||
60 | .. method:: ScaleStore.bind | |
61 | ||
62 | :param map: :class:`GeoExt.MapPanel` or ``OpenLayers.Map`` Panel or map | |
63 | to which we should bind. | |
64 | ||
65 | Bind this store to a map; that is, maintain the zoom list in sync with | |
66 | the map's current configuration. If the map does not currently have a | |
67 | set scale list, then the store will remain empty until the map is | |
68 | configured with one. | |
69 | ||
70 | .. method:: ScaleStore.unbind | |
71 | ||
72 | Un-bind this store from the map to which it is currently bound. The | |
73 | currently stored zoom levels will remain, but no further changes from | |
74 | the map will affect it. | |
75 | ||
76 | ||
77 | ||
78 | ||
79 |
Note: See TracBrowser
for help on using the repository browser.