{"_id":"leaflet-switch-scale-control","_rev":"32-dd7d4651b59361e6cb1a85398323c1c5","name":"leaflet-switch-scale-control","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","dist-tags":{"latest":"0.7.0"},"versions":{"0.4.3":{"name":"leaflet-switch-scale-control","version":"0.4.3","homepage":"https://github.com/Flexberry/leaflet-switch-scale-control","license":"MIT","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{"babel-eslint":"^7.2.1","eslint":"^3.18.0","eslint-config-airbnb-es5":"^1.1.0","eslint-plugin-react":"^6.10.3"},"gitHead":"3ba04bef4cdef5f27b7eacbc3b92298b1f4a75ca","description":"Leaflet switch scale control is used to select and display map scale from dropdown list. Depends on:\r * [Leaflet#1.2.0](http://leafletjs.com/reference-1.2.0.html)","_id":"leaflet-switch-scale-control@0.4.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-UvkmOWxhG2mU1MRdqhnGevKeGbaOuSQYIEMUrEclrRvqVW908UYleO0blMMv1Z9XpOgxtZeb/JPedSxKB79+eA==","shasum":"3b3ea078b62341e94f1905d6ebad263b67ff5e95","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.4.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC49af4ikhnESdJVeCtxB5gYBvODOev4DSPVFzVC7dfdQIhAJSZhGQjGpf0Ry8xBcca396ldh6/ItaQEOGlL69w2vDL"}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.4.3.tgz_1516187094074_0.2914509254042059"},"directories":{}},"0.4.4":{"name":"leaflet-switch-scale-control","version":"0.4.4","homepage":"https://github.com/Flexberry/leaflet-switch-scale-control","license":"MIT","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{"babel-eslint":"^7.2.1","eslint":"^3.18.0","eslint-config-airbnb-es5":"^1.1.0","eslint-plugin-react":"^6.10.3"},"gitHead":"389d00cfc0d3dc85c2249abd0b6da9b55a8e9b75","description":"Leaflet switch scale control is used to select and display map scale from dropdown list. Depends on:\r * [Leaflet#1.2.0](http://leafletjs.com/reference-1.2.0.html)","_id":"leaflet-switch-scale-control@0.4.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-Wo8BkZGGGNjHtX5JJFigsFsaqx1HmbI5HyvWsANtdc1JtqCurHglTV2bkW6aTm77KWC0kBHSytl4lMqqBllTAQ==","shasum":"45c6a22917c857d0fdf9ca8ad5de6be331d951dd","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.4.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqBs6O/lGxTWLaJggZTzDvSWcSNPZ4wWXs/6gliR/NVAiEA9R2rgtXc30cazP2YCM0JkuqPKW1tTZbM2qRsDsIEM+0="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.4.4.tgz_1516187300863_0.7945685568265617"},"directories":{}},"0.6.0":{"name":"leaflet-switch-scale-control","version":"0.6.0","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"34c1d2c12105d91dbff2d9a14c35709195d023ba","_id":"leaflet-switch-scale-control@0.6.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-ZvHY4/f6/PbbnKGlkYvIMAu1ieES2P01XB0yya5AV31n89YnSveFfdGYkgykIhLqoS8MVayHJEiUfJaJ8Yb5PA==","shasum":"bc6e14177f81f1f6dbe2cb79770e90199ad8a8f7","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVfCjtsoPl3jp+hvzrpIcgX9GEpjHLQapqdpXaRo0pDAiEAgtl3ch1MWLonx+Nw+IWKKWwjuotBUSYlb+NaoD89gNE="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.0.tgz_1516194605138_0.9963009124621749"},"directories":{}},"0.6.1":{"name":"leaflet-switch-scale-control","version":"0.6.1","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"69fd44d3fde53a7a706ff01a815cf5d5923c7198","_id":"leaflet-switch-scale-control@0.6.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-2QNRHXJjFA0x7GUOPiT8XC9jh1vvsSrVDV7GfQdswxySi9rIi11NS0Yq/xABLJqWhpEgWZmzhYVC7opz9uKo2A==","shasum":"725e69c18844bdbcb9634c29ac1277d9dabfad69","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9xB6OBlX8/fRHyXbHYLDOl2eO2rtBSQwSP0SVrUWU+AiEAhXf+yu4FO++7eQ/0kk+AfrnbPcKro3pfDXP5FJvRPZg="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.1.tgz_1516194927016_0.3606387584004551"},"directories":{}},"0.6.2":{"name":"leaflet-switch-scale-control","version":"0.6.2","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"01a38fe6cb716d8370680e4d21cb2c0c52dbbe41","_id":"leaflet-switch-scale-control@0.6.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-EWJjSu+pCD6ABMqQlYh6vHS6MtyfPcNbskHx8iTPFqYwo3IoG+6E/GZuZMlmhyNhgCsVPLD3cM5XCJ966U1ZVw==","shasum":"e6cc546ee7a6b3e341bf80ea55cd43d0fdd7fc3c","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC+HYb/itFckXbOjx6xaFLGc8PSXzu3HB+KqMyaIXP8AIhAMx2isybEwP8uUeecqs3SJMI1q9zWotmtxYmECT3UCE8"}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.2.tgz_1516195929672_0.30220088781788945"},"directories":{}},"0.6.3":{"name":"leaflet-switch-scale-control","version":"0.6.3","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"dafa84afe71d2fb07c054c2a9a38da73ae2536ef","_id":"leaflet-switch-scale-control@0.6.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-UPluzfhMo5/hX+d4YZw8Naq448/jDzSXI8nw9wgVdN16qERWK6ECypUGl2N2xx4CxKCcPJuSidJcEJVutG1iug==","shasum":"ac25c389fb479b89b4918b8c02d58ea2275e3543","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5avE0eXKvf4JERJIJWRfvy5L2Lh0LQJcrwYParEseOAIgdZ86MMQFxZlGABhYr5bQ84JVbZ69xi5KYsBQUVLJyOI="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.3.tgz_1516204542181_0.7588238844182342"},"directories":{}},"0.6.4":{"name":"leaflet-switch-scale-control","version":"0.6.4","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"f0c0f104c7c99ab2b7313eb84cc4fb2d2dde821c","_id":"leaflet-switch-scale-control@0.6.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-7ssmOFA7aFD9CEc774CWWwhfzNyIU/9dGi7d/okZxklYoxiyk3aQz6pN12n3K8zMFCqyELDWjbe1ZQmfAhE7Zw==","shasum":"8cb31e260ebb5d2bb5d9b1a5e6505b6b6558769b","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIQddGfXV/CJn+LO89e9iZVo0E8cmVhY6Zx/Dfk2d9OAiBNNcTwFhnoWSKMJPSsbAI6dYjOohO80GEM+JJXc756Zg=="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.4.tgz_1516268783444_0.9489175656344742"},"directories":{}},"0.6.5":{"name":"leaflet-switch-scale-control","version":"0.6.5","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"1f623988e63cb7a155dc9b3a783a541806db3630","_id":"leaflet-switch-scale-control@0.6.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-DaBiLGYHZdzxuLN4MJ6W1DpUhLStyKgZFAmGEnddzM5Zj+KSEff1uoPX96bzwmXtHKtZPEAvFoo5psWh62hzKg==","shasum":"49e98de21eaaa5e9c00977705f707a921838381f","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaOufr/AnWJkqf+Kp1rG/0z3eSXixTL0THSWBMgP8UKwIgQaKhX211TSJB+wwT09GV13QyRxG4lg5d53jtaWhwjR8="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.5.tgz_1516373381812_0.15057398611679673"},"directories":{}},"0.6.6":{"name":"leaflet-switch-scale-control","version":"0.6.6","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","gitHead":"7792226b0a38cc299943475d233aa5167bb89c35","_id":"leaflet-switch-scale-control@0.6.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-wM/QR6FFF//BQQBLgbVXjMDXBPSOY3OJ5xu1ax3m/kDS3e7CT2RCdtkndoNTwVHryaRTAhecrAPMeXcgfjyAHA==","shasum":"4466c772457346ef1873920f066d8b7fb92bdcdd","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArBAy6BfPO6OYegMOPESmnfmy8ZqGB2wGwdKaT2EuU/AiAyWpOPUTJ7kiSAD77N6TFzcXqopF8yHgaLdTfWDowvZw=="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control-0.6.6.tgz_1516373702089_0.6138619629200548"},"directories":{}},"0.6.9":{"name":"leaflet-switch-scale-control","version":"0.6.9","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","_id":"leaflet-switch-scale-control@0.6.9","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-aH5gafjxPfzv2Z4sk5sSEkCK8dlEc9987qWbSl2Llpbl7VfZC4I9KUCB1ab1mpdm5lqVoVPxy6E/vVR7/kFjqg==","shasum":"6f30dbd2bf0e03eb0c7879c26c80ce7f071faf05","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.6.9.tgz","fileCount":149,"unpackedSize":3007712,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUTmrdRHvwYRLcDmRrAnGesxRWI2ZNxQ7o/4SCEb1uPAiEAo9FPy1lTQNtC6bnAVt6mxWuBJA15XhqulC3qzuWe7vc="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control_0.6.9_1519144766950_0.6389443465581486"},"_hasShrinkwrap":false},"0.7.0":{"name":"leaflet-switch-scale-control","version":"0.7.0","description":"Leaflet switch scale control is used to select and display map scale from dropdown list","main":"src/L.Control.SwitchScaleControl.js","dependencies":{"leaflet":"^1.2.0"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"keywords":["leaflet","switch","scale","control"],"author":"","license":"MIT","bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","_id":"leaflet-switch-scale-control@0.7.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hbaltz","email":"hugobaltz@gmail.com"},"dist":{"integrity":"sha512-gSNz6mI6fC5gpCAOXZ1uFQfNdssMLHr6ir4ibLG7gw7ibuCkJm2D/+1VbmcG9lKP9EFnQcceTW+edghQ/h3hvw==","shasum":"918714f811329c4fe752eb445e9663cb715c6110","tarball":"https://registry.npmjs.org/leaflet-switch-scale-control/-/leaflet-switch-scale-control-0.7.0.tgz","fileCount":149,"unpackedSize":3007764,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsdWkIoTxYQrUUA0QHtNY0CJrEdF9vy9p+0+V1Qo2JQgIgU8e+g9X/SKF3jFKB7OEQa+YMy0lXFcfLD0Qavpshcdk="}]},"maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/leaflet-switch-scale-control_0.7.0_1519219664601_0.6672397165071973"},"_hasShrinkwrap":false}},"readme":"# Leaflet-Switch-Scale-Control\r\nLeaflet switch scale control is used to select and display map scale from dropdown list. Depends on:\r\n\r\n* [Leaflet#1.2.0](http://leafletjs.com/reference-1.2.0.html)\r\n\r\n### [DEMO](https://hbaltz.github.io/leaflet-switch-scale-control/examples/demo.html)\r\n\r\n## API\r\n\r\n## Install\r\n```bash\r\nnpm install leaflet-switch-scale-control\r\n```\r\n\r\n### Usage\r\n```javascript\r\nmap.addControl(new L.Control.SwitchScaleControl(options));\r\n```\r\n### Options\r\nSpecified below values are default\r\n```json\r\n    position: 'bottomleft',  // Leaflet control position.\r\n    dropdownDirection: 'upward', // Specifies direction of dropdown's openning.\r\n    className: 'map-control-scalebar', // Control's wrapper class.\r\n    updateWhenIdle: false, // Control's wrapper class.\r\n    ratio: false, // Flag: whether to display ratio prefix.\r\n    ratioPrefix: '1:', // Ratio prefix text.\r\n    ratioCustomItemText: '1: Entrez une valeur', // Custom ratio text.\r\n    customScaleTitle: 'Entrez une valeur et appuyez sur Entrée', // Custom scale title text.\r\n    ratioMenu: true,\r\n    // If recalcOnZoomChange is false, then recalcOnPositionChange is always false.\r\n    recalcOnPositionChange: false, // Flag: whether to recalc scale on map position change.\r\n    recalcOnZoomChange: true, // Flag: whether to recalc scale on map zoom change.\r\n    scales: [500, 1000, 2000, 5000, 10000, 25000, 50000, 100000, 200000, 500000, 1000000, 2500000, 5000000, 10000000], // Array of available to select scales\r\n    roundScales: null,// Array of available to display rounded scales\r\n    adjustScales: false, // Flag: whether to adjust custom scale to max of scales\r\n    splitScale: false, // if true 1:1500000 => 1:1'500'000 in scale display\r\n    pixelsInMeterWidth: function,\r\n    getMapWidthForLanInMeters: function\r\n```\r\n#### pixelsInMeterWidth: returns pixels per meter; needed if ratio: true.\r\n```javascript\r\n    pixelsInMeterWidth: function () {\r\n      var div = document.createElement(\"div\");\r\n      div.style.cssText = \"position: absolute;  left: -100%;  top: -100%;  width: 100cm;\";\r\n      document.body.appendChild(div);\r\n      var px = div.offsetWidth;\r\n      document.body.removeChild(div);\r\n      return px;\r\n    }\r\n```\r\n#### getMapWidthForLanInMeters: returns width of map in meters on specified latitude.\r\n```javascript\r\n    getMapWidthForLanInMeters: function (currentLan) {\r\n      return 6378137 * 2 * Math.PI * Math.cos(currentLan * Math.PI / 180);\r\n    }\r\n```\r\n","maintainers":[{"name":"hbaltz","email":"hugobaltz@gmail.com"}],"time":{"modified":"2022-05-07T18:42:19.557Z","created":"2018-01-17T09:04:14.224Z","0.1.0":"2018-01-17T09:04:14.224Z","0.2.0":"2018-01-17T09:16:11.698Z","0.3.0":"2018-01-17T09:37:44.579Z","0.3.1":"2018-01-17T09:40:22.656Z","0.4.0":"2018-01-17T10:35:58.561Z","0.4.1":"2018-01-17T10:39:19.541Z","0.4.2":"2018-01-17T11:01:28.548Z","0.4.3":"2018-01-17T11:04:55.061Z","0.4.4":"2018-01-17T11:08:21.782Z","0.5.0":"2018-01-17T11:25:08.787Z","0.5.1":"2018-01-17T11:31:54.593Z","0.5.2":"2018-01-17T11:35:26.116Z","0.6.0":"2018-01-17T13:10:06.368Z","0.6.1":"2018-01-17T13:15:28.550Z","0.6.2":"2018-01-17T13:32:12.099Z","0.6.3":"2018-01-17T15:55:43.386Z","0.6.4":"2018-01-18T09:46:25.127Z","0.6.5":"2018-01-19T14:49:43.359Z","0.6.6":"2018-01-19T14:55:03.699Z","0.6.9":"2018-02-20T16:39:27.057Z","0.7.0":"2018-02-21T13:27:44.753Z"},"homepage":"https://github.com/hbaltz/leaflet-switch-scale-control#readme","license":"MIT","readmeFilename":"README.md","keywords":["leaflet","switch","scale","control"],"repository":{"type":"git","url":"git+https://github.com/hbaltz/leaflet-switch-scale-control.git"},"bugs":{"url":"https://github.com/hbaltz/leaflet-switch-scale-control/issues"}}