mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
js v2.0.0: rename protocol.tileFunc -> tile, CHANGELOG, README
This commit is contained in:
@@ -61,7 +61,7 @@ export class Protocol {
|
||||
return this.tiles.get(url);
|
||||
}
|
||||
|
||||
tileFunc = (params: any, callback: any) => {
|
||||
tile = (params: any, callback: any) => {
|
||||
const re = new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/);
|
||||
const result = params.url.match(re);
|
||||
const pmtiles_url = result[1];
|
||||
|
||||
Reference in New Issue
Block a user