X Enterprises
Fmt

FmtMap

Embeds a Google Maps iframe by address, coordinates, or search query — no API key required.

Fmt

The Fmt category provides stateless display formatters. Each component is a thin wrapper around native Intl APIs, VueUse, or Nuxt utilities — they accept a raw value and render formatted output without any side effects.

Components

<XAFmtMap />

Embeds a Google Maps iframe using the no-API-key embed URL. Accepts an address string, lat/lng coordinates, or a search query. Renders client-side only (<ClientOnly>).

<XAFmtMap address="1600 Amphitheatre Parkway, Mountain View, CA" :height="300" />
<XAFmtMap :lat="37.4224764" :lng="-122.0842499" :zoom="17" />
<XAFmtMap query="coffee shops near Times Square" map-type="satellite" />

Props

PropTypeDefaultDescription
addressStringnullAddress string to search for
queryStringnullFree-text search query
latNumbernullLatitude coordinate
lngNumbernullLongitude coordinate
zoomNumber15Zoom level (1–21)
widthString | Number'100%'Container width
heightString | Number300Container height (px)
mapType'roadmap' | 'satellite''roadmap'Map display type
allowFullscreenBooleantrueEnable fullscreen button
loading'lazy' | 'eager''lazy'Iframe loading strategy
containerClassString''Additional container CSS classes

AI Context

component: XAFmtMap
package: "@xenterprises/nuxt-x-app"
auto-import: true
prefix: XA
category: Fmt
use-when: Embedding a Google Maps iframe for an address, coordinates, or search query. No API key required. Renders client-side only via ClientOnly.
Copyright © 2026