leaflet.zoomhome icon indicating copy to clipboard operation
leaflet.zoomhome copied to clipboard

Zoom home offset if sidebar is open

Open valeriodeluca opened this issue 6 years ago • 0 comments

Hi guys, this is my webmap:

www.mainjoin.eu/map/santiago/

Everything works perfectly: sidebar(v2), autopan, popup content go in sidebar panels fine.

Only a few trouble. At top right I have zoom home button. When sidebar is close everything go fine: zoom home button center my map. When sidebar is open the zoom home makes the same thing but the sidebar hide part of my center map. I'd like a little right-offset on result of zoom home button when sidebar is open. Something like:

if sidebar.close() = true zoomhome else zoomhome.offset

Any advices are welcome, thanks! Valerio

valeriodeluca avatar May 22 '18 17:05 valeriodeluca