doxa-maps/library/components/map-controls/HelpButton.vue
doxa-maps d5ba21fa76 doxa-maps — portable bundler for embeddable JAMstack maps
Standalone repo that builds embeddable JAMstack map bundles (web components),
composes them into a lazy-loaded SPA via layouts/, and optionally wraps a
Capacitor Android/iOS app — one build, choose your output/CDN. Diátaxis docs.

History reset to a single clean commit; no PII, IPs, or internal terms.
2026-09-10 01:53:07 +00:00

30 lines
817 B
Vue

<!--
HelpButton.vue — Opens the "About this map" help modal.
Service logic extension point: swap the `open-help` emit for an inline
tooltip, an external link, a Pinia help-store action, etc.
Props:
isDark — theme flag forwarded from parent
Emits:
open-help — fires on click; parent decides how to display help content
-->
<script setup>
import { useI18n } from 'vue-i18n'
import MapControlButton from './MapControlButton.vue'
const { t } = useI18n()
defineProps({
isDark: { type: Boolean, default: false }
})
defineEmits(['open-help'])
</script>
<template>
<MapControlButton :is-dark="isDark" :title="t('buttons.aboutThisMap')" @click="$emit('open-help')">
<span style="font-size:15px;font-weight:700;font-family:serif;line-height:1;">?</span>
</MapControlButton>
</template>