Announcement

Collapse
No announcement yet.

Nautical Mile Support for ScaleBarLayer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nautical Mile Support for ScaleBarLayer

    There is an old post https://forum.worldwindcentral.com/f...-scalebarlayer about adding support for Nautical Miles to the ScaleBarLayer. There is a link to a site that appears to no longer exist that has a full implementation to support that unit. It did not seem to be that complex of a change and is an important unit for my customer set. Was wondering if this can be integrated into the code base so I do not have to provide a custom implementation to support the unit.

  • #2
    Hello Chris,

    I've got good news, its already in there!

    On your ScalebarLayer just use the setter "setUnit" like so:
    Code:
    myScalebarLayer.setUnit(ScaleBarLayer.UNIT_NAUTICAL);
    Zach
    World Wind Team
    https://github.com/NASAWorldWind

    Comment


    • #3
      I am so happy that it is still available here. I am clearing my doubts about programming through the posts here. gout symptoms foot It is great to have a forum to discuss our doubts and also getting answers within no time.

      Comment

      Working...
      X