Modify ScaleLine to show 1/xxx

22 views
Skip to first unread message

diego

unread,
May 29, 2013, 6:54:50 AM5/29/13
to opensca...@googlegroups.com
Hi all. I want to modify the ScaleLine control so that it also shows the scale with the format 1/xxx, and I'm not sure that what I'm doing is right. This is how I'm obtaining the value:

      var lScale    :Number = Unit.getScaleFromResolution (mapResolution, currentMapUnits);
      this.lblScale.text = '1/' + Math.round (lScale).toString();

Is this correct? Can someone help me with this?

TIA

Diego.

Reply all
Reply to author
Forward
0 new messages