Skip to content

Commit

Permalink
Add empty properties, restore rendering code as per feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Clark committed Apr 25, 2024
1 parent a9f928c commit f300f48
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/pixi/PixiLayerCustomData.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class PixiLayerCustomData extends AbstractLayer {

this._ensureIDs(newPoly);

newPoly.properties = {};
polys.push(newPoly);
return polys;
}
Expand Down Expand Up @@ -253,9 +254,7 @@ export class PixiLayerCustomData extends AbstractLayer {
if (feature.v !== version) {
feature.v = version;
feature.geometry.setCoords(coords);
if (d.properties){
feature.label = l10n.displayName(d.properties);
}
feature.label = l10n.displayName(d.properties);
feature.setData(dataID, d);
}

Expand Down Expand Up @@ -311,9 +310,7 @@ export class PixiLayerCustomData extends AbstractLayer {
if (feature.v !== version) {
feature.v = version;
feature.geometry.setCoords(coords);
if (d.properties){
feature.label = l10n.displayName(d.properties);
}
feature.label = l10n.displayName(d.properties);
feature.setData(dataID, d);
}

Expand Down

0 comments on commit f300f48

Please sign in to comment.