Git Product home page Git Product logo

Comments (12)

xkjyeah avatar xkjyeah commented on August 28, 2024 1

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024 1

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024

from vue-google-maps.

pwnz22 avatar pwnz22 commented on August 28, 2024

now i have this. I need to set it to gmap-map?)

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024

from vue-google-maps.

pwnz22 avatar pwnz22 commented on August 28, 2024

Now im getting something there in console.log.
But can i getBounds() in this closure?
I mean console.log(gmapObject.getBounds()) or console.log(gmapObject.getCenter()). I'm doing this but there an strange object. There is no values for lat and lng

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024

from vue-google-maps.

pwnz22 avatar pwnz22 commented on August 28, 2024

Thanks for the fast response)

I'm also using this event.
And the last question is it good practice to watch the bounds
when i'm listenin to the event @bounds_changed="bounds = $event"
and then run method there like:

watch: {
            'bounds': function (bounds) {
                this.boundsChanged(bounds)
            }
        }

from vue-google-maps.

pwnz22 avatar pwnz22 commented on August 28, 2024

Because i'm doing ajax request and need also use lodash.debounce to not make 100 requests at once when user dragging the map)

I deleted the watch and did something like this : @bounds_changed="boundsChanged($event)"

from vue-google-maps.

xkjyeah avatar xkjyeah commented on August 28, 2024

from vue-google-maps.

pwnz22 avatar pwnz22 commented on August 28, 2024

I also deed that. Thanks a lot :)
I will close the issue.

from vue-google-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.