[Bug] Using 3D Elevation in combination with tilt and panning results in some tiles not loading

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

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

評価

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

調査の方向性

まず、提供された React のマップ設定、MapTiler Streets v2 スタイル、raster-dem terrain ソースで問題を再現し、次に react-map-gl が terrain とチルト/パンの更新をどのように統合しているかを調査します。terrain を有効にしてチルトおよびパンを行った際に、報告された環境全体でベクタータイルと 3D 建物が一貫して読み込まれたままになることを完了条件とします。

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

説明

bug
Description

When enabling 3D terrain using a raster-dem source, tilting and panning the map causes vector tiles and 3D buildings to randomly pop in and out. Removing the terrain layer resolves the issue.

Expected Behavior

Tiles should load consistently during tilt and pan interactions.

Steps to Reproduce
  1. Set up a basic MapLibre map:

<Map mapStyle="test.json" />

  1. Use a style file based on MapTiler Streets v2 (create a free API key).

  2. In your test.json style file, add the following source:

"sources": {
  ...
  "terrain_dem": {
    "type": "raster-dem",
    "tiles": [
      "https://some_elevation_api/terrarium/zxy/{z}/{x}/{y}.png"
    ],
    "minzoom": 10,
    "maxzoom": 14,
    "encoding": "terrarium",
    "tileSize": 256,
    "attribution": "Terrarium"
  }
}
  1. In the root of the style JSON, enable terrain:
"terrain": {
  "source": "terrain_dem",
  "exaggeration": 1.0
}

https://github.com/user-attachments/assets/3418bdfa-0a9d-4044-acdc-87ef848065d9

Environment
  • Framework version: "react-map-gl": "^8.0.4",
  • Map library: "maplibre-gl": "^5.5.0",
  • Browser: Chrome 137.0.7151.69 (but also happens on any browser)
  • OS: macOS Sequoia 15.3.2 (but also happens on Windows/Linux)
Logs

No response

主要言語
TypeScript
スター
8.5k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

visgl/react-map-gl のほかの issue

visgl/react-map-gl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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