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

Bug(selection): interval selection on map disappears when no marks are selected #9555

Open
1 task done
semla opened this issue Mar 7, 2025 · 0 comments
Open
1 task done
Labels

Comments

@semla
Copy link

semla commented Mar 7, 2025

Bug Description

selection-disappears.webm

Select an interval, move it to where there is no mark. The square disappears.

Editor

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 900,
  "height": 600,
  "layer": [
    {
      "data": {
        "url": "data/us-10m.json",
        "format": {"type": "topojson", "feature": "states"}
      },
      "projection": {"type": "albersUsa"},
      "mark": {"type": "geoshape", "fill": "lightgray", "stroke": "white"}
    },
    {
      "data": {"url": "data/airports.csv"},
      "projection": {"type": "albersUsa"},
      "mark": "circle",
      "params": [{"name": "brush", "select": "interval"}],
      "encoding": {
        "longitude": {"field": "longitude", "type": "quantitative"},
        "latitude": {"field": "latitude", "type": "quantitative"},
        "size": {"value": 10},
        "color": {"value": "steelblue"}
      }
    }
  ]
}

A workaround is to "create a new mark rect that is based on the brush's signal data– not the brush's selected data".
Editor

Checklist

  • I checked for duplicate issues.
@semla semla added the Bug 🐛 label Mar 7, 2025
@semla semla changed the title Bug(selection): interval selection disappears when no marks are selected Bug(selection): interval selection on map disappears when no marks are selected Mar 7, 2025
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

1 participant