Skip to content

Commit

Permalink
prevent error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps committed Nov 1, 2023
1 parent 5197e17 commit 10da69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/map/layerbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ export default function mapLayerBuilder(config, cache, store) {

const urlParams = `${def.layerName}/${z}/${y}/${x}`;

return `${source.url}/${urlParams}.png`;
return `${source?.url}/${urlParams}.png`;
};

const xyzSourceOptions = {
Expand Down

0 comments on commit 10da69a

Please sign in to comment.