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

Tracker: Widgets #9490

Open
22 of 45 tasks
ibgreen opened this issue Mar 4, 2025 · 0 comments
Open
22 of 45 tasks

Tracker: Widgets #9490

ibgreen opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels

Comments

@ibgreen
Copy link
Collaborator

ibgreen commented Mar 4, 2025

Target Use Case

Goal: Improve selection and usability of widgets, both for geospatial and info vis domains.

Simple Widget Library Wish List

"Advanced" Widgets Wish List

Components Wish List

  • IconMenu
  • IconToggle

Widget System Features

Widget System Docs

General deck improvements that would benefit Widgets

The following improvements to deck.gl could benefit the widget system or enable useful widgets

  • Add a declarative template system for creating tooltip / popup HTML. RFC in [Feat] tooltip template syntax #9551
  • Allow views to set background color - Without it, ScreenshotWidget images are not as expected.
  • Selection extension module? - Needed for "plotly style" selection widget?

PopupWidget tracker

A PoC was landed as _InfoWidget as a placeholder until we have a better solution, it attracted a lot of feedback: Given the amount of feedback, we may want to align on requirements / assumptions:

  • Click?
  • Hover?
  • Programmatic creations (multiple popups?)?

Punchlist

  • Decide on if and how to align with getTooltip()

  • support onHover

  • Add InfoWidget @felixpalmer

  • Modify widget example to include InfoWidget @felixpalmer

  • Auto reposition the popup so it is not covered when at the edges of the canvas @ibgreen

  • Add minOffset prop to keep the popup from "touching" the edge. @ibgreen

  • Add a small "arrow" / "tip" extrusion to point to the selected point @ibgreen

  • Ensure the improved positioning is recalculated when panning the view @ibgreen

  • use CSS variables and add theming for these. --popup-background and --popup-padding @chrisgervang

  • Add a declarative API for creating the popup HTML (string template against the pick info perhaps like plotly hovertemplate?) RFC in [Feat] tooltip template syntax #9551

  • Define semantics of popups when using multiple viewports. @chrisgervang

@Pessimistress A "real" popup does the following

  • control placement relative to the anchor, or automatically positioned to fit in the map container; @ibgreen
  • have a tip that points to the anchor, like that from Google Maps or Maplibre; @ibgreen
  • have a close button and/or
  • closes when clicked outside; @felixpalmer
  • can render multiple instances on map with the correct z order;

Tooltip tip/arrow

image

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