Flux, Your Gateway to a Decentralized World. https://home.runonflux.io https://api.runonflux.io https://docs.runonflux.io https://source.runonflux.io https://wiki.runonflux.io
Implements dark mode for maps. (both light and dark, toggleable)
Updates the dashboard map to use this new component.
Adds map with nodes locations to Applications -> Management -> My Active Apps
Adds markercluster dependency to dev deps.
Let me know if there are any other places you want me to add any new maps.
markercluster background
Markercluster is a map marker aggregation tool. It provides much more intuitive and easy to understand map displays when a large number of markers are used on a map.
Markercluster is great when working with large groups of markers like we are. Depending on the data format used, it is much faster when trying to paint 10k+ markers.
Markercluster also has sane defaults for multiple markers on the same spot, if this happens, it arranges the markers around the point with a "path" line to the origin. This means that we can keep the popup text to one per marker, instead of having to merge them manually.
FluxMap component
This component uses the data format from fluxstats as input. I.e. you can pass in a prop nodes with the data in the format:
it will then use this data to build a geoJson object, this is a standard mapping datatype used by many mapping softwares and is reuseable.
If you don't pass in any nodes, it will fetch the list from the fluxstats api - it will display a warning message (on the map) Unable to fetch Node data. Try again later if the api is unavailable
You can also pass in the filterNodes and showAll props, if you only want to show specific nodes from the nodes list. We use this on the myApps page.
What this pull does
FluxMap
component.Applications -> Management -> My Active Apps
Let me know if there are any other places you want me to add any new maps.
markercluster background
Markercluster is a map marker aggregation tool. It provides much more intuitive and easy to understand map displays when a large number of markers are used on a map.
Markercluster is great when working with large groups of markers like we are. Depending on the data format used, it is much faster when trying to paint 10k+ markers.
Markercluster also has sane defaults for multiple markers on the same spot, if this happens, it arranges the markers around the point with a "path" line to the origin. This means that we can keep the popup text to one per marker, instead of having to merge them manually.
FluxMap component
This component uses the data format from fluxstats as input. I.e. you can pass in a prop
nodes
with the data in the format:it will then use this data to build a
geoJson
object, this is a standard mapping datatype used by many mapping softwares and is reuseable.If you don't pass in any nodes, it will fetch the list from the fluxstats api - it will display a warning message (on the map)
Unable to fetch Node data. Try again later
if the api is unavailableYou can also pass in the
filterNodes
andshowAll
props, if you only want to show specific nodes from thenodes
list. We use this on the myApps page.Screenshots:
Dashboard page:
My Active Apps:
Markers on same spot:
GeoJson data format:
Where we add one feature per node, in the format: