diff --git a/CHANGELOG.md b/CHANGELOG.md
index a8d5b0e..55feab1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- numeric/alphabetic sort of layers by name in gpx file
+- layer without name are written with empty name
### Fixed
- app is now compliant to occ check-code
diff --git a/js/gpxedit.js b/js/gpxedit.js
index 5c03017..7c6c0ee 100644
--- a/js/gpxedit.js
+++ b/js/gpxedit.js
@@ -650,7 +650,7 @@
gpxText = gpxText + ' ' + name + '\n';
}
else{
- gpxText = gpxText + ' unnamed\n';
+ gpxText = gpxText + ' \n';
}
if (alt !== undefined) {
gpxText = gpxText + ' ' + alt + '\n';
@@ -675,7 +675,7 @@
gpxText = gpxText + ' ' + name + '\n';
}
else{
- gpxText = gpxText + ' unnamed\n';
+ gpxText = gpxText + ' \n';
}
if (comment) {
gpxText = gpxText + ' ' + comment + '\n';
@@ -706,7 +706,7 @@
gpxText = gpxText + ' ' + name + '\n';
}
else{
- gpxText = gpxText + ' unnamed\n';
+ gpxText = gpxText + ' \n';
}
if (comment) {
gpxText = gpxText + ' ' + comment + '\n';