ol-pmtiles 0.1.1; fix shape of reading tile data from getZxy [#225] (#232)

* ol-pmtiles 0.1.1; fix shape of reading tile data from getZxy [#225]

* update ol raster example [#225]
This commit is contained in:
Brandon Liu
2023-08-08 13:47:18 +08:00
committed by GitHub
parent d1ea859443
commit 6cd4a97d2a
6 changed files with 16 additions and 16 deletions

View File

@@ -56,7 +56,7 @@ export class PMTilesVectorSource extends VectorTile {
if (tile_result) {
const format = tile.getFormat();
tile.setFeatures(
format.readFeatures(tile_result.data.buffer, {
format.readFeatures(tile_result.data, {
extent: extent,
featureProjection: projection,
})

View File

@@ -59,7 +59,7 @@ export class PMTilesVectorSource extends ol.source.VectorTile {
if (tile_result) {
const format = tile.getFormat();
tile.setFeatures(
format.readFeatures(tile_result.data.buffer, {
format.readFeatures(tile_result.data, {
extent: extent,
featureProjection: projection,
})