diff --git a/src/common/web-map/WebMapBase.ts b/src/common/web-map/WebMapBase.ts index 10001fc6..e0a2e9e5 100644 --- a/src/common/web-map/WebMapBase.ts +++ b/src/common/web-map/WebMapBase.ts @@ -774,7 +774,7 @@ export default abstract class WebMapBase extends Events { } } if (!isSaved) { - names.push(name || '0'); + names.push(name); } } diff --git a/test/unit/mocks/data/layerData.json b/test/unit/mocks/data/layerData.json index fb38bfb0..0c96173a 100644 --- a/test/unit/mocks/data/layerData.json +++ b/test/unit/mocks/data/layerData.json @@ -31,6 +31,20 @@ "94393454 ", "-1.5", "94393454 " + ], + [ + "40.07108", + "116.588918", + "", + "Point", + "北京/首都", + "116.588918", + "40.07108", + "", + "95786296 ", + "94393454 ", + "-1.5", + "94393454 " ] ] }