Skip to content

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

Open
@IceSakuraAzure

Description

@IceSakuraAzure

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions