Skip to main content

How to display the map scale in the HTML5 Viewer

Comments

1 comment

  • Permanently deleted user

    Hi Martin,

    Nothing out of the box as far as I know, but you could write a simple custom module for that with a View which sits in whatever Region you like to display that.

    Then you listen to MapExtentChangedEvent or MapExtentChangingEvent depending on the frequency you like to update the scale.

    Both of those events have LOD (level of details) in their payload which includes resolution and scale among others.

    And then you update scale value in your ViewModel based on the value from event payload and thats all you need to do basically.

    Cheers

    0

Please sign in to leave a comment.