You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
50km = 26.9978 nautical miles
In the image, the width of the scale box of 50km is wider than the width of the scale box of 30nm.
In the source code, I see this line: scale.style.width = Math.round(this.options.maxWidth * (nauticalMiles / maxNauticalMiles)) - 10 + 'px';
Not sure why the author minuses 10.
Any idea to fix this?
The text was updated successfully, but these errors were encountered:
I use this nautical scale with a Leaflet map.
![image](https://private-user-images.githubusercontent.com/38374492/319146050-35874107-1beb-4aad-9b7c-b27c126dbf1b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzgwMjI0NTQsIm5iZiI6MTczODAyMjE1NCwicGF0aCI6Ii8zODM3NDQ5Mi8zMTkxNDYwNTAtMzU4NzQxMDctMWJlYi00YWFkLTliN2MtYjI3YzEyNmRiZjFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTI3VDIzNTU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNTIxYWU4NGM2MjY1YmJlNDg2ODM1ZTkyZTRmZDI0OWJjMDE4MDQ5NGY2M2RjODFlZTY4MGE2YThmNjkwYzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.KRepe0zXdO4SmVFM-SBkRIq0ZlF34aE2zCm3-pQN2TM)
50km = 26.9978 nautical miles
In the image, the width of the scale box of 50km is wider than the width of the scale box of 30nm.
In the source code, I see this line:
scale.style.width = Math.round(this.options.maxWidth * (nauticalMiles / maxNauticalMiles)) - 10 + 'px';
Not sure why the author minuses 10.
Any idea to fix this?
The text was updated successfully, but these errors were encountered: