Select to view content in your preferred language

JavaScript v3 getScale

172
0
02-27-2023 01:52 PM
SKW_UK
by
New Contributor III

Hi,

We have a Web App Builder application, with a Vector Tile basemap in British National Grid projection system. 

We have some custom scales on the basemap, and set them on the webmap when configuring in WAB.

However, the scalebar widget shows different values ... ie 1:5000 shows as 1:4905.  When looking at the widget, it uses scaleUtils to get the scale.  When we use this.map.getScale() it returns 1:5000.  Question is, why do they calculate differently, and is there any reason why I shouldn't change the widget to use the map.getScale() function?

0 Kudos
0 Replies