Menu

Uncaught TypeError: Cannot read property...

Help
2010-11-12
2013-04-25
  • Jonathan Miller

    Jonathan Miller - 2010-11-12

    Hi,

    I am am running into this error:

    Uncaught TypeError: Cannot read property 'ROADMAP' of undefined

    I have added the script (v1.3) and included the google maps API (v3) with my key and I have jQuery 1.3.2 running. Everything that was specified on this site as the needed components. The map does not generate because of this error.

     
  • Darren Dignam

    Darren Dignam - 2010-12-19

    Can you post a link to what you are trying to do?
    Sounds like you are usaing the V2 of the google API constants for the map-type

    with the V3 API you need to use something along the lines of
    google.maps.MapTypeId.ROADMAP
    instead

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.