mirror of
https://github.com/maputnik/editor.git
synced 2026-08-02 11:17:26 +00:00
Allow download style
This commit is contained in:
@@ -19,6 +19,10 @@ export class StyleManager {
|
||||
console.log(command)
|
||||
}
|
||||
|
||||
exportStyle() {
|
||||
return JSON.stringify(this.mapStyle, null, 4)
|
||||
}
|
||||
|
||||
layer(layerId) {
|
||||
console.log(this.mapStyle)
|
||||
return this.mapStyle.layers[layerId]
|
||||
|
||||
Reference in New Issue
Block a user