您好,这个得看leaflet自身的api,用https://leafletjs.com/reference-1.3.0.html#map-option的getZoomScale方法可以获取到比例尺,然后自行加个页面显示。
这个getZoomScale方法不是获取当前的比例尺的吧?!
getZoomScale(<Number> toZoom, <Number>fromZoom)
Returns the scale factor to be applied to a map transition from zoom level fromZoom to toZoom. Used internally to help with zoom animations.
fromZoom
toZoom