Skip to content

Commit

Permalink
fix: attributePosition crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Mar 7, 2025
1 parent a5acea1 commit 358077f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/features/createTileLayer/createTileLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CreateTileLayer implements CreateTileLayerInterface {
});

const attribution = L.control.attribution({
position: tileLayerOptions.attributionPosition as ControlPosition,
position: tileLayerOptions.attributionPosition as ControlPosition ?? "bottomleft",
}).addAttribution(
tiles.attribution ?? ""
).setPrefix(false);
Expand Down

0 comments on commit 358077f

Please sign in to comment.