ol-pmtiles PMTilesVectorSource doesn't work with OpenLayers 10+

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
frontend, web-dev

調査の方向性

Reproduce the provided OpenLayers 10.8.0 example with ol-pmtiles 2.0.2 and inspect the failure reported at util.js:29, comparing it with the stated OpenLayers 9 behavior. Trace the PMTilesVectorSource integration and verify that the example loads the vector layer without the ol_uid error on current OpenLayers versions.

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

説明

PMTilesVectorSource only works with OL 9, not with the current versions.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"></script> <script src="https://unpkg.com/[email protected]/dist/olpmtiles.js"></script>

Example from: https://github.com/protomaps/PMTiles/tree/main/openlayers

const vectorLayer = new ol.layer.VectorTile({
declutter: true,
source: new olpmtiles.PMTilesVectorSource({
url: "https://r2-public.protomaps.com/protomaps-sample-datasets/nz-buildings-v3.pmtiles",
attributions: ["© Land Information New Zealand"],
}),
style: new ol.style.Style({
stroke: new ol.style.Stroke({
color: "gray",
width: 1,
}),
fill: new ol.style.Fill({
color: "rgba(20,20,20,0.9)",
}),
}),
});
map.addLayer(vectorLayer);

util.js:29 Uncaught TypeError: Cannot read properties of undefined (reading 'ol_uid')

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

protomaps/PMTiles のほかの issue

protomaps/PMTiles の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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