mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Be able to zoom out for more than 1% #3582

Eternal5tudent posted onGitHub

Is your feature request related to a problem? Please describe. My maps are constituted of 512x512 tiles. Zooming to 1% is not enough to have a clear view of the whole map. It would be nice if it could be even smaller or even infinite. image


A workaround for now would be to set your map's grid size smaller (e.g. to 128x128px, quarter-size) and set your Tileset's tile render size to "map grid size". This will make the tiles scale to fit the smaller grid size, so 100% zoom will actually be more like 25% zoom, and 25% zoom will be more like 8.25% zoom, while 400% zoom will show you the actual pixel size, and so on.

If this is for a digital game, this means that when you load the map in your game, you'll need to multiply the map grid size to your intended size, and you'll need to multiply any Object and Layer positions and Object sizes by the same factor (i.e. 4x if the map's grid size is 1/4 of the intended size).

posted by eishiya about 2 years ago

In the linked issue about removing zoom limits for Fit Map in View, @bjorn mentioned not wanting to introduce an option, but there is also performance to consider, as well as usability - it would be a poor experience to accidentally scroll-zoom out so far that you have to scroll for a while or use the zoom drop-downs to zoom back in.

I think a reasonable approach would be to limit user-triggered zoom to 1% or the zoom required to fit the map in view, whichever is smaller. The zoom required to fit the map in view will change depending on the viewer size, and if the user tries to zoom out while their current zoom is smaller than the currently "allowed" zoom, their zoom level should not change.

This would imply removing the zoom limit on Fit Map in View. I think this is a good idea (if the user wants this on a very large map, they're probably prepared for some lag). The limit on Fit Map in View should only be in place for when Tiled automatically triggers this, since in that case the user didn't ask for it and may not be prepared.

Edit: The above solution would not be great for people who want to zoom out far to navigate a large world, however. Perhaps that need could be handled in some other way, such as a minimap of the whole World.

posted by eishiya about 2 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests