Skip to content

Opening a Style should set the correct map extend using the stylefiles center and zoom (if available) #1546

@lukasalexanderweber

Description

@lukasalexanderweber

Hi,

thank you for this awesome editor :)

One feature request I have is that opening a opening a style should set the correct map extend using the stylefiles center and zoom.

I think that this might be rather easy: After opening the style we have zoom and center in the StyleSpecification.

onStyleOpen could call onStyleChanged and afterwards alter the state of the map view.

This is relevant for our use case as we only host tiles for cities and small regions. We can use the seach or add the info to the url (0.77/0/0) to find the correct map view but this feature would make things way easier of cause

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