Menu
Libraries |
Category

svelte-googlemaps

  • Purpose: Provides Google Maps and Google Places Autocomplete components with a focus on efficient loading in Single Page Applications (SPAs). Supports Server-Side Rendering (SSR).
  • Target Audience: Developers building Svelte applications requiring Google Maps or Places Autocomplete functionality.
  • Key Features:
    • Svelte Support: Includes GoogleMap and GooglePlacesAutocomplete components designed for Svelte applications.
    • Efficiency: Optimized for loading Google components in SPAs.
    • SSR Ready: Works with Server-Side Rendering.
  • Components:
    • GooglePlacesAutocomplete: A Google Places Autocomplete input field.
      • Options:
        • ariaLabel: Sets aria-label value (default: 'location').
        • on:placeChanged: Event fired when a place is selected (excludes manual address entry).
        • placeholder: Custom placeholder text.
        • styleClass: Custom CSS classes for styling.
    • GoogleMap: A Google Maps component.
  • Current Status: Documentation is a Work in Progress (WIP); users may need to inspect source code for advanced usage.

sveltegooglegooglemapsgoogle-mapsgmapsvanillajsvanilla-javascriptgeolocationmapsplacesssr

Comments