mirror of
https://github.com/maputnik/editor.git
synced 2026-02-14 08:30:02 +00:00
Add source layer support
This commit is contained in:
@@ -26,7 +26,7 @@ function fromJSON(jsonStyle) {
|
||||
if(key === "layers") {
|
||||
return [key, Immutable.OrderedMap(val.map(l => [l.id, Immutable.fromJS(l)]))]
|
||||
} else if(key === "sources" || key === "metadata" || key === "transition") {
|
||||
return [key, Immutable.Map(val)]
|
||||
return [key, Immutable.fromJS(val)]
|
||||
} else {
|
||||
return [key, val]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user