Giter VIP home page Giter VIP logo

Comments (4)

ruben82 avatar ruben82 commented on June 21, 2024

Hi there, I solve it.
I found the hypothetical bug.
I think maybe is righter to put $mapPromise in the mounted hook and not in the provide.
At the row 108, you use a div that is not mounted at the DOM yet, so it's null.
I changed provide method with mounted, and it works fine.
I hope this help

from vue2-gmap-custom-marker.

eregnier avatar eregnier commented on June 21, 2024

I never had this issue before.
You may be right with the appropriate moment where trigger the mapPromise.
there is no reference to a to variable in the component.
Is your map properly loaded by the way ?
I will think about changing the trigger moment and I have to test it before, but I am surprised you are the only one to meet this issue at the moment.

from vue2-gmap-custom-marker.

eregnier avatar eregnier commented on June 21, 2024

I think I understand the issue now. this component requires both the dom to be mounted AND the map to be ready. I should trigger the callback code once both ran to ensure the component is really ready to run.

from vue2-gmap-custom-marker.

eregnier avatar eregnier commented on June 21, 2024

Problem solved on your side, I'll implement this if any more issues of the same type arrives from users. The component seems to works properly at the moment

from vue2-gmap-custom-marker.

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.