No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Google maps API : Autocomplete

    Help
    3
    5
    2266
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JordanOwlie last edited by

      Hi there !

      Has anyone managed to make the GoogleMap Autocomplete API working with new <q-input> or <q-autocomplete> components ? Is there any demo anywhere about this 🙂 ?
      Used vue-gmaps before (https://www.npmjs.com/package/vue-gmaps) on input, but it’s not working anymore on <q-input>.

      Thank you

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by

        What part isn’t working for you?
        Try to use AutocompleteService as it’s not bound to any UI component and you can trigger it yourself. 🙂

        1 Reply Last reply Reply Quote 0
        • J
          JordanOwlie last edited by

          Hmm I’ll check that one didn’t noticed it first !

          Thank you

          1 Reply Last reply Reply Quote 0
          • J
            JordanOwlie last edited by

            Ok managed to make it works on input :
            mounted () {
            let self = this
            let address_input = this.$refs.address_input.$refs.input
            let address_input_autocomplete = new google.maps.places.Autocomplete(address_input)
            address_input_autocomplete.addListener(‘place_changed’, function () {
            let place = address_input_autocomplete.getPlace()
            console.log(place)
            })
            }

            On console.log I’ve the result when a user select a place, just have to bind it to a data value now :).

            Thank you @a47ae for your suggestion !

            1 Reply Last reply Reply Quote 0
            • M
              Myrrel last edited by

              hi! Any one has an complete example? please!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post