This commit is contained in:
zh
2025-12-05 18:19:35 +08:00
parent 09553840c8
commit b770c5fc7b
11 changed files with 103 additions and 41 deletions

View File

@ -16,17 +16,13 @@ class Layer extends BaseLayer {
super(sdk, options)
this.object = {}
this.options.host = this.options.host || getHost()
this.on()
this.loadLayer(this.options)
}
get type() {
return "layer"
}
on() {
return this.loadLayer(this.options)
}
async loadLayer(data) {
this.object = { ...data }
let url = ""