maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

Please add a parameter to the "fitZoom" and "fitExtent" functions to control whether the calculation result is "cover" or "contain".

Open IceSakuraAzure opened this issue 11 months ago • 1 comments

maptalks's version and what browser you use? 1.0.0-rc.33 Edge/122.0.2365.92

Issue description I was using the "fitZoom" function and realized that it only makes the short side of the container fit the map, similar to the css "object-fit:contain" in css. But now I need to make the map fill the whole screen, like the "object-fit:cover" in css, so I want to add a parameter to control the result of this function.

Please provide a reproduction URL (on any jsfiddle like site)

IceSakuraAzure avatar Mar 21 '24 15:03 IceSakuraAzure