maplibre / maplibre-rs

Experimental Maps for Web, Mobile and Desktop
Apache License 2.0
1.35k stars 79 forks source link

Wrap world in X direction #74

Open maxammann opened 2 years ago

maxammann commented 2 years ago

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.

EvanCarter commented 2 years ago

I'll try to pick this one up

maxammann commented 2 years ago

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.