Giter Site home page Giter Site logo

Comments (5)

MicheleBertoli avatar MicheleBertoli commented on June 19, 2024

hello @pedroresende

the line that should have given you the error is the following:
this.map = new google.maps.Map

which means that for some reason the maps property of the google object does not exist when the callback gets fired (which is really weird).

I've got some questions for you in order to find the problem:

  • which version of the library are you using?
  • do you have multiple maps on a single page?
  • if you open the DevTools, can you see any error related to the Google Maps SDK?

from react-gmaps.

pedroresende avatar pedroresende commented on June 19, 2024

Hi @MicheleBertoli,

I've installed using npm, I suppose the installed version is 1.5.0, yes I have multiple maps on the same page, however the other one was mounted using the default google api. About the DevTools, I don't see any error related with Google Maps SDK.

Do you think it is related with multiple maps on the same page, even though not being on the same container ?

from react-gmaps.

MicheleBertoli avatar MicheleBertoli commented on June 19, 2024

can you try removing the other map and see if it works @pedroresende? thanks!

from react-gmaps.

pedroresende avatar pedroresende commented on June 19, 2024

@MicheleBertoli The problem remains the same

from react-gmaps.

MicheleBertoli avatar MicheleBertoli commented on June 19, 2024

oh, that's interesting @pedroresende
it there a way for you to provide me the failing code?
the code from your first comment is working for me unfortunately.
thanks!

from react-gmaps.

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.