Flexberry / leaflet-switch-scale-control

Leaflet plugin to select and display map scale
https://flexberry.github.io/leaflet-switch-scale-control/
MIT License
9 stars 1 forks source link

Add option for custom scale rendering #2

Open victorzinho opened 7 years ago

victorzinho commented 7 years ago

I am missing some flexibility for displaying the scales. I would like to do something like (using human-format):

map.addControl(new L.Control.SwitchScaleControl({
  ...
  render: ratio => '1 : ' + humanformat(ratio)
}));

What do you think?

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication