Skip to content

Strange Zooming-behaviour #223

@wellemut

Description

@wellemut

Problem

The zooming-behaviour of the map is not smooth!

  1. When I zoom in several steps, it zooms out again a few steps. i.e. When I zoom vom 6 to 12, it zooms back to 7.
  2. zooming from 6 to 7 works without any strange behaviour

This happens only in the beginning when I start using the map. After a few interactions, it works smoothly and normal.
It seems to be connected with some kind of loading of data in the background.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.kartevonmorgen.org/m/main?c=47.5617%2C2.8564&z=5.00&mapColorMode=gray
  2. Start zooming before the map is loaded completly
  3. observe what happens after you have zoomed in sereval steps
  4. See error that the map zooms in from n to n+x (x>2) but directly zooms back to n+1 (zooming out is similiar behaviours.

Expected behavior

Zooming in several steps should just load the new map-area without zooming back.

maybe you have to delay the search request to the backend. Only if the user does not interact with the map for 0,5 seconds, the api call will start.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox and Chrome
  • Version: newest

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Sprint Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions