gxp.ScaleLimitPanel¶
- class gxp.ScaleLimitPanel(config)¶
A panel for assembling scale constraints in SLD styles.
Config Options¶
Configuration properties in addition to those listed for Ext.Panel.
- limitMaxScaleDenominator
- Boolean Limit the maximum scale denominator. If false, no upper
- limit will be imposed.
- limitMinScaleDenominator
- Boolean Limit the minimum scale denominator. If false, no lower
- limit will be imposed.
- maxScaleDenominator
- Number The initial maximum scale denominator. If <limitMaxScaleDenominator> is
- true and no minScaleDenominator is provided, <maxScaleDenominatorLimit> will be used.
- maxScaleDenominatorLimit
- Number Upper limit for scale denominators. Default is what you get
- when you project the world in Spherical Mercator onto a single 256 x 256 pixel tile and assume OpenLayers.DOTS_PER_INCH (this corresponds to zoom level 0 in Google Maps).
- minScaleDenominator
- Number The initial minimum scale denominator. If <limitMinScaleDenominator> is
- true and no minScaleDenominator is provided, <minScaleDenominatorLimit> will be used.
- minScaleDenominatorLimit
- Number Lower limit for scale denominators. Default is what you get when
- you assume 20 zoom levels starting with the world in Spherical Mercator on a single 256 x 256 tile at zoom 0 where the zoom factor is 2.
- modifyScaleTipContext
- Function Called from the multi-slider tip’s getText function. The
- function will receive two arguments - a reference to the panel and a data object. The data object will have scale, zoom, and type properties already calculated. Other properties added to the data object are available to the <scaleSliderTemplate>.
- scaleLevels
- Number Number of scale levels to assume. This is only for scaling
- values exponentially along the slider. Scale values are not required to one of the discrete levels. Default is 20.
- scaleSliderTemplate
String Template for the tip displayed by the scale threshold slider.
Can be customized using the following keywords in curly braces:
- zoom - the zoom level
- scale - the scale denominator
- type - “Max” or “Min” denominator
- scaleType - “Min” or “Max” scale (sense is opposite of type)
Default is “{scaleType} Scale 1:{scale}”.