-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FE: add map above LAND cards #521
Comments
I think the start of the map would be to add map snapshot functionality to |
Will need to look more into the best way to get it in... The most common library for js maps is leaflet https://leafletjs.com/ The map texture is a tile layer https://leafletjs.com/reference-1.7.1.html#tilelayer In this TileLayer, you give the URL for the to-be-fetched images to leaflet with a template like this:
When you are at the specified zoom, x and y level, Leaflet will automatically fetch the tiles on the URL you gave. Tiles by default have a 256x256px size (can be changed in the TileLayer options) |
An initial map renderer is up at https://app.webaverse.com/map.html It is tiled/lodded, but it is generated at runtime. Instead, we should generate these tiles on the preview server and serve them with something like leaflet.js. |
Note that because of #532, it might not always render the full world since we don't wait for everything to load, only 5s. User apps will need |
added initial leaflet map on |
added iframe to https://map.webaverse.com |
The text was updated successfully, but these errors were encountered: