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

Map problem with OKAPI tiles #2282

Open
rapotek opened this issue May 8, 2021 · 2 comments
Open

Map problem with OKAPI tiles #2282

rapotek opened this issue May 8, 2021 · 2 comments

Comments

@rapotek
Copy link
Contributor

rapotek commented May 8, 2021

From forum.opencaching.pl:

Cześć. Od parunastu dni występuje problem z mapą na komputerze:

  • skok kółka myszki przybliża/oddala mapę o mniej, niż wcześniej (zoomowanie trwa dłużej)
  • obiekty zarówno na podkładzie, jak i skrzynki i ich podpisy są za małe i nieczytelne na większości stopni przybliżenia.
  • na niektórych stopniach przybliżenia nazwy i mapa są czytelne, ale rozmazane.

Firefox, zoom w przeglądarce 100% jakby co. Ustawienia kółka myszy w porządku.

I can confirm this behaviour. It looks like OKAPI tiles incoming from server are correct, but the map is scaling them not correctly on the user side.

@kojoty
Copy link
Member

kojoty commented May 8, 2021

Previous version is in repo. I will switch back the site to this old version. The new version issue needs investigation.

kojoty added a commit that referenced this issue May 9, 2021
kojoty added a commit that referenced this issue May 9, 2021
@rapotek
Copy link
Contributor Author

rapotek commented May 10, 2021

This can fix the described problem: in public/views/chunks/dynamicMap/dynamicMapCommons.js for View creation in map add constrainResolution: true (f.ex. in line 21, after zoom: params.mapStartZoom). In 5.2 version false was default for this parameter, in 6.5 it is true.

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

No branches or pull requests

2 participants