Menu
Libraries |
Category

svelte-mapbox

  • Purpose: Provides Svelte components for integrating MapBox maps and geocoding (autocomplete) functionality into applications.

  • Key Features:

    • SvelteKit and SSR ready
    • Lightweight with no client-side dependencies for the map component
    • Supports custom Svelte components on the map
    • Includes built-in components like Marker, NavigationControl, and GeolocateControl
    • Reactive properties for center and zoom
    • Customizable markers with optional popups
    • Geocoder with autocomplete functionality and event handling
  • Target Audience: Developers using Svelte or SvelteKit who need MapBox integration for maps and location search.

  • Svelte Support: Primarily designed for Svelte, with first-class support for SvelteKit and SSR.

  • Geocoder Note: The geocoder component adds a client-side dependency (~0.5MB bundle size).

  • Demo: Includes an earthquakes demo (requires a MapBox API key).

For more details, visit the MapBox documentation ↗.

mapboxsveltegoogle-mapsmapsautocompletegeocodinggeocodelocationmapping

Comments