maplibre-rs icon indicating copy to clipboard operation
maplibre-rs copied to clipboard

Wrap world in X direction

Open maxammann opened this issue 3 years ago • 2 comments

Difficulty: Hard

Currently, there is only one instance of the map which is rendererd.

🤔 Expected Behavior

In Y direction the navigation should be restricted such that one can not pan out from the map. This is done in #73

In X direction it should be possible to infinitely pan. When panning beyond the bounds then the world should should be wrapped.

😯 Current Behavior

Only a single instance is rendered.

💁 Possible Solution

Render the world instanced if multiple should be shown.

maxammann avatar May 03 '22 09:05 maxammann

I'll try to pick this one up

EvanCarter avatar May 06 '22 00:05 EvanCarter

Hey @EvanCarter, welcome to the project! I would be happy to guide you wherever needed. I added the "Difficulty Hard" because its probably not trivial. I think a mix of instanced rendering & coordinate transformation is needed to achieve this.

If you are experienced with rendering in general we could also collaborate on #82. We will have to create an abstraction above the low-level wgpu layer.

maxammann avatar May 06 '22 08:05 maxammann