Skip to content
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

Closed
chrislatorres opened this issue Jan 9, 2021 · 6 comments
Closed

FE: add map above LAND cards #521

chrislatorres opened this issue Jan 9, 2021 · 6 comments
Labels

Comments

@chrislatorres
Copy link
Contributor

  • a real image map of the street
  • mouseover info with owner, name of LAND, if for sale/sale price
  • click goes to LAND card detail
@avaer
Copy link
Contributor

avaer commented Jan 11, 2021

I think the start of the map would be to add map snapshot functionality to build.html. LMK if that is needed.

@chrislatorres
Copy link
Contributor Author

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:

http://{s}.somedomain.com/{z}/{x}/{y}.png

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)

@avaer
Copy link
Contributor

avaer commented Jan 11, 2021

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.

@avaer
Copy link
Contributor

avaer commented Jan 11, 2021

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 waitUntil support to signal when they finish loading.

@chrislatorres
Copy link
Contributor Author

added initial leaflet map on add-map branch of webaverse.com repo just using a manual screenshot of the map - webaverse/webaverse.com@6b47185

streetmap1

@chrislatorres
Copy link
Contributor Author

added iframe to https://map.webaverse.com

mapif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants