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

Control doesn't handle browser resize if bounds are set

Open IanMayo opened this issue 6 years ago • 0 comments

Users can use setHomeBounds to store a default bounds region for the home button.

In this method the zoom level for that bounds is calculated and stored.

But, if the browser is resized, that zoom level is now invalid.

The issue can be overcome if the bounds object is stored in the options, then the zoom level calculated in the go-home operation.

IanMayo avatar Jan 13 '20 12:01 IanMayo