Component live demo
You can extend this HTML element with generic attributes like aria-label
β¦
Embed an interactive map in your webpage. Using Leaflet.js under the hood.
You can extend this HTML element with generic attributes like aria-label
β¦
Embed an interactive map in your webpage.
Uses Leaflet.js under the hood.
pnpm i @julian_cataldo/astro-media-map leaflet
Note
Only one map per page for now
---
import MediaMap from '@julian_cataldo/astro-media-map/MediaMap.astro';
// ...
---
<!-- ... -->
<body>
<!-- Place component inside BODY tag -->
<MediaMap
x={43.389636 /* Required */}
y={5.3964332 /* Required */}
z={11}
height={'25rem' /* Required */}
width={'25rem'}
attribution={true}
/>
<!-- ... -->
</body>
Extends: astroHTML.JSX.HTMLAttributes
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map
Note: Version bump only for package @julian_cataldo/astro-media-map