Skip to content

Commit

Permalink
🐛 Fix base layer custom icon missing
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Apr 24, 2024
1 parent 55352b9 commit 5620947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ export default {
switch (baseLayer && baseLayer.servertype || baseLayer) {
case 'OSM': image = 'osm.png'; break;
case 'Bing': image = `bing${baseLayer.source.subtype}.png`; break;
case 'TMS': image = baseLayer.icon ? baseLayer.icon : undefined; break;
case 'WMTS': image = baseLayer.icon ? baseLayer.icon : undefined; break;
case 'TMS': image = baseLayer.icon ? baseLayer.icon : image; break;
case 'WMTS': image = baseLayer.icon ? baseLayer.icon : image; break;
}
return (baseLayer || {}).icon ? image : `${GUI.getResourcesUrl()}images/${image}`;
},
Expand Down

0 comments on commit 5620947

Please sign in to comment.