Socket
Socket
Sign inDemoInstall

@beyonk/svelte-googlemaps

Package Overview
Dependencies
0
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beyonk/svelte-googlemaps


Version published
Weekly downloads
262
increased by42.39%
Maintainers
6
Install size
65.4 kB
Created
Weekly downloads
 

Readme

Source




Svelte Google Maps

js-standard-style publish svelte-v3

Maps and Places components in Vanilla JS (or Svelte)

Particular focus on efficient loading of Google components in an SPA.

SSR Ready

WIP

Documentation is a WIP. Be prepared to examine the source code to get any use out of this right now!

The GoogleMap and GooglePlacesAutocomplete components are a Google Map and Google Places Autocomplete component respectively.

Usage

To use within a Svelte application:

<GooglePlacesAutocomplete apiKey="your-maps-api-key"/>
<GoogleMap apiKey="your-maps-api-key"/>

<script>
  import { GoogleMap, GooglePlacesAutocomplete } from '@beyonk/svelte-googlemaps'
</script>

Options

Autocomplete

AttributePurposeAllowedDefault
ariaLabelSets aria-label value on inputstring'location'
on:placeChangedPlace changed event (does not fire if user hit enter without selecting an address)any function-
placeholderplaceholder textany string-
styleClasscss styles for inputany classes-

Keywords

FAQs

Last updated on 06 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc