You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to display a game map using MapLibre. I sliced the map file into tile images, using them as a raster source. Everything loads fine, I can zoom in and out but the zooming out is locked to the height of the container of the map. I cannot zoom out past this despite setting the minimum zoom to 0. Is there an option to be able to fully zoom out? (leaving gaps on the top and bottom of the container).
I'm also having some trouble with the map teleporting once I move it too much to one side. I disabled the world copies to prevent the map from repeating, but now whenever I move too much to the left or right, the map reappears on the other side. I guess this must be some boundary behaviour but I'm not sure how to correctly set it to prevent this as well.
Here's an example of what I'm experiencing (only being able to zoom out to fix the height of the container & map teleporting to the opposite side when dragging out): https://jsfiddle.net/f7rtpymn/
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I'm trying to display a game map using MapLibre. I sliced the map file into tile images, using them as a raster source. Everything loads fine, I can zoom in and out but the zooming out is locked to the height of the container of the map. I cannot zoom out past this despite setting the minimum zoom to 0. Is there an option to be able to fully zoom out? (leaving gaps on the top and bottom of the container).
I'm also having some trouble with the map teleporting once I move it too much to one side. I disabled the world copies to prevent the map from repeating, but now whenever I move too much to the left or right, the map reappears on the other side. I guess this must be some boundary behaviour but I'm not sure how to correctly set it to prevent this as well.
Here's an example of what I'm experiencing (only being able to zoom out to fix the height of the container & map teleporting to the opposite side when dragging out): https://jsfiddle.net/f7rtpymn/
Beta Was this translation helpful? Give feedback.
All reactions