Changeset 5309
- Timestamp:
- 12/01/07 05:51:49 (1 year ago)
- Files:
-
- sandbox/ahocevar/styles/lib/OpenLayers/Format/SLD.js (modified) (2 diffs)
- sandbox/ahocevar/styles/lib/OpenLayers/Rule.js (modified) (1 diff)
- sandbox/ahocevar/styles/lib/OpenLayers/Style.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/ahocevar/styles/lib/OpenLayers/Format/SLD.js
r5300 r5309 200 200 this.sldns, "MinScaleDenominator"); 201 201 if (minScale && minScale.length > 0) { 202 rule.minScale Denominator= parseFloat(202 rule.minScale = parseFloat( 203 203 this.getChildValue(minScale[0])); 204 204 } … … 208 208 this.sldns, "MaxScaleDenominator"); 209 209 if (maxScale && maxScale.length > 0) { 210 rule.maxScale Denominator= parseFloat(210 rule.maxScale = parseFloat( 211 211 this.getChildValue(maxScale[0])); 212 212 } sandbox/ahocevar/styles/lib/OpenLayers/Rule.js
r5274 r5309 28 28 29 29 /** 30 * APIProperty: minScale Denominator30 * APIProperty: minScale 31 31 * {Number} or {String} minimum scale at which to draw the feature. 32 32 * In the case of a String, this can be a combination of text and 33 33 * propertyNames in the form "literal ${propertyName}" 34 34 */ 35 minScale Denominator: null,35 minScale: null, 36 36 37 37 /** 38 * APIProperty: maxScale Denominator38 * APIProperty: maxScale 39 39 * {Number} or {String} maximum scale at which to draw the feature. 40 40 * In the case of a String, this can be a combination of text and 41 41 * propertyNames in the form "literal ${propertyName}" 42 42 */ 43 maxScale Denominator: null,43 maxScale: null, 44 44 45 45 /** sandbox/ahocevar/styles/lib/OpenLayers/Style.js
r5297 r5309 121 121 // check if within minScale/maxScale bounds 122 122 var scale = feature.layer.map.getScale(); 123 if (this.rules[i].minScale Denominator) {123 if (this.rules[i].minScale) { 124 124 draw = scale > OpenLayers.Style.createLiteral( 125 this.rules[i].minScale Denominator, feature);125 this.rules[i].minScale, feature); 126 126 } 127 if (draw && this.rules[i].maxScale Denominator) {127 if (draw && this.rules[i].maxScale) { 128 128 draw = scale < OpenLayers.Style.createLiteral( 129 this.rules[i].maxScale Denominator, feature);129 this.rules[i].maxScale, feature); 130 130 } 131 131
