default param

This commit is contained in:
Brandon Liu
2021-04-11 12:30:10 +08:00
parent 516aede66a
commit cec7fd3996

View File

@@ -45,7 +45,7 @@
}
class PMTiles {
constructor(url, options) {
constructor(url, options = {}) {
this.url = url
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