kartevonmorgen / kartevonmorgen.ts

Mapping-Frontend to find and add sustainable Organisations (Initiatives, Companies) and Events on Kartevonmorgen.org / MapofTomorrow.org
https://kartevonmorgen.org/
GNU General Public License v3.0
11 stars 12 forks source link

Strange Zooming-behaviour #223

Open wellemut opened 1 month ago

wellemut commented 1 month ago

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.
    1. 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):

Additional context Add any other context about the problem here.