Scale line when zoomed in shows incorrect value for ft

Issue #461 resolved
Glen Blanchard
created an issue

Using the Flex ScaleLine control when zoomed in and it attempts to calculate the value for a ft it is using the wrong unit.

Fix:

{{{

!actionscript

if(maxSizeData > 100000) { this.topCurrentUnit = this._topOutUnits; topUnitKey = "scaleline.km" this.bottomCurrentUnit = this._bottomOutUnits; bottomUnitKey = "scaleline.mi" } else { this.topCurrentUnit = this._topInUnits; topUnitKey = "scaleline.m" this.bottomCurrentUnit = this._bottomOutUnits; bottomUnitKey = "scaleline.ft" }

}}}

Should become

{{{

!actionscript

if(maxSizeData > 100000) { this.topCurrentUnit = this._topOutUnits; topUnitKey = "scaleline.km" this.bottomCurrentUnit = this._bottomOutUnits; bottomUnitKey = "scaleline.mi" } else { this.topCurrentUnit = this._topInUnits; topUnitKey = "scaleline.m" this.bottomCurrentUnit = this._bottomInUnits; // This was incorrect as this._bottomOutUnits; bottomUnitKey = "scaleline.ft" } }}}

Comments (2)

  1. Log in to comment