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

Default projection changes when repeat is used with the geoshape mark #9303

Open
joelostblom opened this issue Apr 4, 2024 · 1 comment
Open
Labels

Comments

@joelostblom
Copy link
Contributor

Bug Description

The default projection for geoshape marks is equalEarth since #7052:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 500,
  "height": 300,
  "data": {
    "url": "data/world-110m.json",
    "format": {"type": "topojson", "feature": "countries"}
  },
  "mark": {"type": "geoshape", "fill": "lightgray", "stroke": "gray"}
}

image
Open the Chart in the Vega Editor

However, when repeat is included in the spec, the projection changes back to the old mercator default:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "repeat": {},
  "spec": {
    "width": 500,
    "height": 300,
    "data": {
      "url": "data/world-110m.json",
      "format": {"type": "topojson", "feature": "countries"}
    },
    "mark": {"type": "geoshape", "fill": "lightgray", "stroke": "gray"}
  }
}

image
Open the Chart in the Vega Editor

This should not happen; equalEarth should be the default even when repeat is used.

@joelostblom
Copy link
Contributor Author

This also happens with concat

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