mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Read object visible state when parsing JSON API response (re: #7188)
This commit is contained in:
@@ -193,7 +193,7 @@ var jsonparsers = {
|
||||
node: function nodeData(obj, uid) {
|
||||
return new osmNode({
|
||||
id: uid,
|
||||
visible: true,
|
||||
visible: typeof obj.visible === 'boolean' ? obj.visible : true,
|
||||
version: obj.version.toString(),
|
||||
changeset: obj.changeset.toString(),
|
||||
timestamp: obj.timestamp,
|
||||
@@ -207,7 +207,7 @@ var jsonparsers = {
|
||||
way: function wayData(obj, uid) {
|
||||
return new osmWay({
|
||||
id: uid,
|
||||
visible: true,
|
||||
visible: typeof obj.visible === 'boolean' ? obj.visible : true,
|
||||
version: obj.version.toString(),
|
||||
changeset: obj.changeset.toString(),
|
||||
timestamp: obj.timestamp,
|
||||
@@ -221,7 +221,7 @@ var jsonparsers = {
|
||||
relation: function relationData(obj, uid) {
|
||||
return new osmRelation({
|
||||
id: uid,
|
||||
visible: true,
|
||||
visible: typeof obj.visible === 'boolean' ? obj.visible : true,
|
||||
version: obj.version.toString(),
|
||||
changeset: obj.changeset.toString(),
|
||||
timestamp: obj.timestamp,
|
||||
|
||||
Reference in New Issue
Block a user