Missing graticules when scales are missing

未關閉
#538 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 6 天內回覆

@teunbrand 已經在處理了。

開始於 2026年9月9日。

評估

這個 Issue 還沒有評估資料。

描述

The work in #492 has a regression when only a geometry layer is present and positional scales have not been explicitly provided:

let lon_breaks = match scales.iter_mut().find(|s| s.aesthetic == "pos1") {
    Some(s) => { resolve_map_scale(s, geo_bbox.xrange()); s.numeric_breaks() }
    None => Vec::new(),
};

fails to find the non-existing pos1 scale that hasn't been created because only geometry has been mapped. We need to create default positional scales when they are missing from the mapping so that they can provide default breaks etc

主要語言
Rust
星號
575
分支
33
平均合併
7 天 18 小時
30 天內合併 PR
11

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

posit-dev/ggsql 的其他 Issue

查看 posit-dev/ggsql 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。