mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
ol-pmtiles 0.4.0 (#374)
* fix double ol source tile load events [#373] * bump pmtiles dependency to 3.x * bump examples to ol 9.x * fix package.json publint
This commit is contained in:
@@ -53,7 +53,6 @@ export class PMTilesVectorSource extends VectorTile {
|
||||
const y = +result[4];
|
||||
|
||||
tile.setLoader((extent, resolution, projection) => {
|
||||
tile.setState(TileState.LOADING);
|
||||
this.pmtiles_
|
||||
.getZxy(z, x, y)
|
||||
.then((tile_result) => {
|
||||
|
||||
@@ -59,7 +59,6 @@ export class PMTilesVectorSource extends ol.source.VectorTile {
|
||||
const y = +result[4];
|
||||
|
||||
tile.setLoader((extent, resolution, projection) => {
|
||||
tile.setState(1);
|
||||
this.pmtiles_
|
||||
.getZxy(z, x, y)
|
||||
.then((tile_result) => {
|
||||
|
||||
Reference in New Issue
Block a user