OpenLayers OpenLayers

Changeset 5309

Show
Ignore:
Timestamp:
12/01/07 05:51:49 (1 year ago)
Author:
ahocevar
Message:

renamed min/maxScaleDenominator to min/maxScale

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/ahocevar/styles/lib/OpenLayers/Format/SLD.js

    r5300 r5309  
    200200                this.sldns, "MinScaleDenominator"); 
    201201        if (minScale && minScale.length > 0) { 
    202             rule.minScaleDenominator = parseFloat( 
     202            rule.minScale = parseFloat( 
    203203                    this.getChildValue(minScale[0])); 
    204204        } 
     
    208208                this.sldns, "MaxScaleDenominator"); 
    209209        if (maxScale && maxScale.length > 0) { 
    210             rule.maxScaleDenominator = parseFloat( 
     210            rule.maxScale = parseFloat( 
    211211                    this.getChildValue(maxScale[0])); 
    212212        } 
  • sandbox/ahocevar/styles/lib/OpenLayers/Rule.js

    r5274 r5309  
    2828     
    2929    /** 
    30      * APIProperty: minScaleDenominator 
     30     * APIProperty: minScale 
    3131     * {Number} or {String} minimum scale at which to draw the feature. 
    3232     * In the case of a String, this can be a combination of text and 
    3333     * propertyNames in the form "literal ${propertyName}" 
    3434     */ 
    35     minScaleDenominator: null, 
     35    minScale: null, 
    3636 
    3737    /** 
    38      * APIProperty: maxScaleDenominator 
     38     * APIProperty: maxScale 
    3939     * {Number} or {String} maximum scale at which to draw the feature. 
    4040     * In the case of a String, this can be a combination of text and 
    4141     * propertyNames in the form "literal ${propertyName}" 
    4242     */ 
    43     maxScaleDenominator: null, 
     43    maxScale: null, 
    4444 
    4545    /**  
  • sandbox/ahocevar/styles/lib/OpenLayers/Style.js

    r5297 r5309  
    121121                // check if within minScale/maxScale bounds 
    122122                var scale = feature.layer.map.getScale(); 
    123                 if (this.rules[i].minScaleDenominator) { 
     123                if (this.rules[i].minScale) { 
    124124                    draw = scale > OpenLayers.Style.createLiteral( 
    125                             this.rules[i].minScaleDenominator, feature); 
     125                            this.rules[i].minScale, feature); 
    126126                } 
    127                 if (draw && this.rules[i].maxScaleDenominator) { 
     127                if (draw && this.rules[i].maxScale) { 
    128128                    draw = scale < OpenLayers.Style.createLiteral( 
    129                             this.rules[i].maxScaleDenominator, feature); 
     129                            this.rules[i].maxScale, feature); 
    130130                } 
    131131