Correctly load previously saved style

This commit is contained in:
lukasmartinelli
2016-09-21 08:25:10 +02:00
parent af34049069
commit 9d4053dd78
4 changed files with 11 additions and 10 deletions

View File

@@ -27,7 +27,6 @@ function fromJSON(jsonStyle) {
function ensureHasId(style) {
if(style.has('id')) return style
console.log('has no id', style.toJS())
return style.set('id', Math.random().toString(36).substr(2, 9))
}