Enhance CountryMap component with zoom and recenter functionality, and add map controls for improved user interaction

This commit is contained in:
sha
2025-08-14 02:05:49 +03:00
parent 6c7ac29f62
commit 1e722252e2
2 changed files with 159 additions and 11 deletions
+5 -2
View File
@@ -165,7 +165,11 @@
</div>
<div class="right-column">
{#if logo.tags && logo.tags.some((tagObj) => (tagObj.text || tagObj) === "Country") && logo.meta && logo.meta["ISO code"]}
<CountryMap countryCodes={[logo.meta["ISO code"]]} countryNames={[logo.meta["country"]]} />
<CountryMap
countryCodes={[logo.meta["ISO code"]]}
countryNames={[logo.meta["country"]]}
countryScale={true}
/>
{/if}
<div class="logo-details fullscreen-details">
@@ -510,5 +514,4 @@
.logo-details span {
color: var(--color-text);
}
</style>