Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce "Zoom to layer resolution" context menu entry #809

Merged
merged 7 commits into from
May 17, 2021

Conversation

annarieger
Copy link
Member

@annarieger annarieger commented May 14, 2021

  • Add configurable layer context menu entry "Zoom to layer resolution" (default is false)

    • If set to true, determines configured layer min resolution and set its value on the map
    • If no value cannot be determined, zooms map to it's minimal available scale (zoom = 0)
  • Please note:

    • Default value of showZoomToLayerExtent and showApplyTimeInterval configs was changed to false. So from now, the configs must be explicitily provided by component instantiation if the context menu entries should be shown in client.

Also rewrites LayerTreeClassic and LayerTreeDropdownContextMenu to functional components.

Please review @terrestris/devs

…DropdownContextMenu.tsx


remove empty line

Co-authored-by: Daniel Koch <koch@terrestris.de>
@annarieger annarieger merged commit bd94691 into master May 17, 2021
@annarieger annarieger deleted the zoom-to-layer-resolution branch May 17, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants