OregSamSas / vardle

worldle based geography quiz game with the counties of the old Hungarian Kingdom
https://oregsamsas.github.io/vardle/
MIT License
1 stars 0 forks source link

Zoomable map would be useful (mainly for mobile devices) #4

Closed OregSamSas closed 2 months ago

OregSamSas commented 2 months ago

Explanation and reasoning

The size of the map updates in order to be fit on the screen, but it's not good, if it's a large map (e.g. the world map), because it can't be zoomed into. However you might want to see exactly what are the neighbours of Burkina Faso and what are not.

Implementation

There should be two buttons to control the degree of zoom, which should be stored in a global variable image The map should be cropped if it overflows its container, and also, it should be able to be dragged around.

Bugs

OregSamSas commented 2 months ago

The last commit tackles most of the job, it seems so far. At least on Laptop. On safari, somehow the overflow: clip doesn't work, I'll try to use overflow: hidden. And I forgot to delete the centre button when removing the map. BTW I also added a button that centres the map.

OregSamSas commented 2 months ago

It works well enough.