helium / network-explorer

https://explorer.helium.com
Apache License 2.0
54 stars 27 forks source link

Stats and redirected routes #10

Closed mugoosse closed 1 year ago

mugoosse commented 1 year ago

Stats route

Mapbox is priced based on map loads:

A map load is counted every time Mapbox GL JS initializes on a webpage or in a web app. A map load includes unlimited Vector Tiles API and Raster Tiles API requests.

This PR makes the /stats route a nested that keeps the map loaded in the background as to not introduce a new billed event.

It currently looks like this but that can be easily tweaked:

image

Redirects

Redirects are added to catch legacy explorer routes.