Compare commits
No commits in common. "163d9b23e95bc24b58ba2ecb6512c0a18d82665a" and "a8ad3a7558cde1bc3967bf5b616f828c5f4e9db3" have entirely different histories.
163d9b23e9
...
a8ad3a7558
@ -38,7 +38,6 @@ async function getData() {
|
|||||||
|
|
||||||
let icon = null;
|
let icon = null;
|
||||||
if (d.uuid !== null) {
|
if (d.uuid !== null) {
|
||||||
try {
|
|
||||||
const img = await getMeta(`${api_url}/api/club/${d.uuid}/logo`);
|
const img = await getMeta(`${api_url}/api/club/${d.uuid}/logo`);
|
||||||
let ratio = img.naturalHeight / img.naturalWidth;
|
let ratio = img.naturalHeight / img.naturalWidth;
|
||||||
|
|
||||||
@ -51,9 +50,6 @@ async function getData() {
|
|||||||
//shadowAnchor: [4, 62], // the same for the shadow
|
//shadowAnchor: [4, 62], // the same for the shadow
|
||||||
popupAnchor: [0, -50 * ratio] // point from which the popup should open relative to the iconAnchor
|
popupAnchor: [0, -50 * ratio] // point from which the popup should open relative to the iconAnchor
|
||||||
});
|
});
|
||||||
}catch (e) {
|
|
||||||
console.log("Error loading image for club", d.name, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const m of d.training_location) {
|
for (const m of d.training_location) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user