Select to view content in your preferred language

Change initial scale bar size

563
1
10-25-2022 09:32 AM
GennadiiPrykhodko
Emerging Contributor

I have been really enjoying using ArcGIS API for Javascript for my app development needs. Sometimes, however, I overwrite widgets original styles such as colors and sizes to meet my needs. Is there a way to overwrite ScaleBar's widget initial size, specifically length?

GennadiiPrykhodko_0-1666715440676.pngGennadiiPrykhodko_1-1666715508189.png

 

Thank you,

Gennadii Prykhodko

Tags (3)
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor

Hi @GennadiiPrykhodko , no there isn't a way to change the length of the scalebar. It's calculated dynamically based on the scale of the map.