Allow download style

This commit is contained in:
lukasmartinelli
2016-09-09 16:58:48 +02:00
parent 52e4c92ccf
commit 3cc989e70f
5 changed files with 42 additions and 15 deletions
+4
View File
@@ -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]