bernardodiasc / x-world-map

http://x-world-map.com
0 stars 2 forks source link

Limit the maximun height on the map zoom #14

Open felipdcz opened 1 year ago

felipdcz commented 1 year ago

As a user, I don't want to see blank spaces when zooming out, so that I have always the map visible, image image

bernardodiasc commented 1 year ago

I'd say it's not really a bug. This is default behaviour of Google Maps. Maybe we can limit the maximum zoom out, but I would not recommend to change this because it's the user experience the GMaps itself offers and users might be used to that.

felipdcz commented 1 year ago

@bernardodiasc I understand a bit why it's used there but here I'm trying another way, please consider testing my suggestion. With the HUD clean this will help limit the usage control of the map and let us customize even further. I guess it exists on Google Maps because there is really too much features on the screen and they are caring for other goals for the user flow.

bernardodiasc commented 1 year ago

This might be tricky. Because it's a matter of aspect ratios both of the map and the device viewport. We'll have to dynamically check the device aspect ratio and decide a maximum zoom out for the map based on that.