Skip to content

always allow to enable MVT layer #2129

Closed

Description

@karussell

Currently the layer cannot be selected for low zoom levels.

Activity

  1. added
    good first issue
    on Sep 11, 2020
  2. easbar commented on Sep 11, 2020

    @easbar
    Member

    Yeah at least there should be some hint to indicate that it is disabled when the map is zoomed out. Right now clicking the 'Local MVT' checkbox at a low zoom level does nothing and it just seems something is broken.

  3. karussell commented on Sep 11, 2020

    @karussell
    MemberAuthor

    This is an inbuilt behaviour of Leaflet I think. To fix it we could allow all zoom levels for MVT and have to make sure that performance is fine for low zoom levels.

  4. boldtrn commented on Sep 11, 2020

    @boldtrn
    Member

    Something that you probably could do is to update the label of the MVT layer on a zoom event, so you could change the label like (zoom in 2 more steps).

  5. easbar commented on Sep 11, 2020

    @easbar
    Member

    Ah ok, we could also change the text from 'Local MVT' to 'MVT (high zoom only)'... Don't know :). But I'd be surprised if its not possible to add some clickhandler to the checkbox and show some alert or something

  6. easbar commented on Sep 17, 2020

    @easbar
    Member

    Just for reference: The minZoom level is currently set to 10 here:

    (and in MvtResource.java...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueweb

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions