vizier-scala
vizier-scala copied to clipboard
Integrate Geo Plots (sedona) with Leaflet
What pain point is this feature intended to address? Please describe. At present, Vizier's GeoPlots render to a static image:
- There is no background, no context whatsoever.
- Sedona's raster plotting capabilities are (currently) only good for histogram/heatmap style map visualizations. This isn't surprising, as shapes/markers/etc... are far more effectively rendered as vector data. However, we don't have a way to plot vector data (without involving python).
Describe the solution you'd like Add Leaflet as a dependency and use it to render GeoPlots. Suggested UI is to have multiple rows, and on each row:
- Pick a display type (Point, Polygons, Histogram, etc...)
- Pick a dataset
- Pick a geo-typed column
- Select metadata (if appropriate): e.g., attribute to display in a name label, attribute to display in a pop-up details view, attribute to use as an icon. (bonus points if we provide an icon library... e.g., MDI? Emoji?)
Additionally, global settings:
- Initial coordinates/zoom
- Leaflet map data source (suggest pre-populating a bunch and then providing a properties option to allow users to specify more)
Finally, there should be an option to allow users to download the map specification (e.g., as an HTML file)
Describe alternatives you've considered
- The python cell allows you to render to leaflet, but involves a lot of code, and this is a fairly standard pattern
- These can be generated out-of-band, but again, this is a sufficiently standard pattern