plotly / plotly/plotly.py

6.0.0: Usage of maplibre with mapstyle 'carto-positron' lacks street names

オープン
#5,013 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

Updated plotly from 5.17 to 6.0.0. In that context I switched from scattermapbox to scattermap (maplibre rendering engine), as recommended. Mapstyle is carto-positron.

After doing this, maps on city scale started to show less street labels, see attached screenshots:

scattermapbox; old rendering engine
scattermap; maplibre rendering engine

Code (using maplibre):

fig = go.Figure()
# [...]
fig.update_layout(
            # [...] other properties
            map_style="carto-positron",
            map = dict(
                zoom = 0,
                bounds = bounding_rect,
            ),
        )

Goal: I want to keep the map style, but also have street labels shown as before (without modifying the zoom of the map).

Question: What options do exist to achieve my goal?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、Plotly 6.0.0、maplibre renderer、carto-positron style を使って、提供された Python の例を再現し、その後、scattermapbox の結果および添付されたスクリーンショットと比較します。issue ではファイルやテストは指定されていません。完了条件は、地図のズームを変更せずに、carto-positron を維持したまま期待される道路ラベルを表示することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。