Skip to content

Commit

Permalink
[fix]空字符串字段图例不对 review byqiw
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Sep 7, 2023
1 parent 2cd0903 commit 627a076
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/web-map/WebMapBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export default abstract class WebMapBase extends Events {
}
}
if (!isSaved) {
names.push(name || '0');
names.push(name);
}
}

Expand Down
14 changes: 14 additions & 0 deletions test/unit/mocks/data/layerData.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@
"94393454 ",
"-1.5",
"94393454 "
],
[
"40.07108",
"116.588918",
"",
"Point",
"北京/首都",
"116.588918",
"40.07108",
"",
"95786296 ",
"94393454 ",
"-1.5",
"94393454 "
]
]
}
Expand Down

0 comments on commit 627a076

Please sign in to comment.