Skip to content

Commit a196a7f

Browse files
Allow publishing empty layers.
1 parent f810c6d commit a196a7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/includes/format.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
getStringProperty
1111
} from './util.mjs';
1212

13+
const ANNOTATIONS_LAYER = 'annotations';
14+
1315
/**
1416
* Determines a unique marker ID for the current marker.
1517
* @param {Layer} layer Current map layer
@@ -176,7 +178,7 @@ function convertLayer(layer, datamap, convertedLayers, usedLanguages, language)
176178
}
177179
}
178180
const layerAssociationId = [layer.name, ...parentNames].join(' ');
179-
if (markers.length > 0) {
181+
if (markers.length > 0 || layer.name !== ANNOTATIONS_LAYER) {
180182
datamap.markers[layerAssociationId] = markers;
181183
}
182184
} else if (layer.isGroupLayer) {

0 commit comments

Comments
 (0)