How to display the map scale in the HTML5 Viewer
Hi there
Is there any way to either show a scale bar or the map scale as an element within the map window of the html5 viewer? Map scale would be preferable...
Regards, Martin Bjørkenes, Geodata As, Norway
-
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar