mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
default param
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
class PMTiles {
|
class PMTiles {
|
||||||
constructor(url, options) {
|
constructor(url, options = {}) {
|
||||||
this.url = url
|
this.url = url
|
||||||
this.root = fetch(this.url,{method:'HEAD',headers:{Range:'bytes=0-511999'}}).then(resp => {
|
this.root = fetch(this.url,{method:'HEAD',headers:{Range:'bytes=0-511999'}}).then(resp => {
|
||||||
// for servers like Azure, GH Pages which return 200 instead of 206
|
// for servers like Azure, GH Pages which return 200 instead of 206
|
||||||
|
|||||||
Reference in New Issue
Block a user