Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@nagoos/google-maps-autocomplete-vuetify
Advanced tools
Vuetify autocomplete component for google places. Easy to link to a google map component!
A component to allow users to lookup places, and see their selected place on a map. Uses the google maps places API, Vuetify, and vue2-google-maps.
See working demo
yarn add @nagoos/google-maps-autocomplete-vuetify
This component requires two main libraries to work: Vuetify, and vue2-google-maps
This component won't work until you setup the vue2-google-maps
library with your google maps api key:
import Vue from "vue";
import * as VueGoogleMaps from "vue2-google-maps";
Vue.use(VueGoogleMaps, {
load: {
key: "<your google api key>",
libraries: "places"
}
});
This component relies on the Maps JavaScript API
, Places API
, and the Geocoding API
which you can enable from your google cloud console.
import GoogleMapsAutocomplete from "@nagoos/google-maps-autocomplete-vuetify";
components
section:components: {
GoogleMapsAutocomplete,
...
},
<GoogleMapsAutocomplete
v-model="address"
:restrict-to-countries="['jp']"
@initialized="mapsLoaded = true"
class="ma-1"
placeholder="Enter a business name"
/>
When a user selects a place, the v-model is updated with a json object representing the selected place.
Example:
{
"name": "WAGYUMAFIA THE BUTCHER’S KITCHEN",
"address": "WAGYUMAFIA THE BUTCHER’S KITCHEN, 1 Chome-14-16 Nishiazabu, Minato City, Tokyo, Japan",
"placeId": "ChIJz55I6XqLGGARpI3NfnSQINk",
"location": {
"lat": 35.6611479,
"lng": 139.72333349999997
}
}
Pass an array of countries to limit the Places results to those countries.
The component will emit an initialized
event once the Google Maps libraries are ready, and it has prepared itself. Once this event has been emitted, you know it is safe to load a google map.
Pass a placeholder to the component's autocomplete input. This lets you display a message when the input is blank.
Pass a message to be displayed when the Google Places API couldn't find any results.
FAQs
Vuetify autocomplete component for google places. Easy to link to a google map component!
We found that @nagoos/google-maps-autocomplete-vuetify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.