Software Archive
Read-only legacy content
17060 Discussions

Google maps key get uncaught RangeError: Maximum call stack size exceeded

Mario_R_
Beginner
1,386 Views

Hello to all,

when I add my key map google I get the following error when I open the page containing the map: uncaught RangeError: Maximum call stack size exceeded https://maps.googleapis.com/maps/api/js?key=MYKEY.

The key has been added in this way:

<script type="application/javascript" src="https://maps.googleapis.com/maps/api/js?key=MYKEY"></script>

Keyless the error does not occur.

Any idea how to fix the error?

Thank you all

0 Kudos
2 Replies
Dale_S_Intel
Employee
1,386 Views

I haven't seen that problem, but there are a couple things you could try.  First try the Geolocation Demo ("Start a new project"->"Samples and Demos"->"HTML5 + Cordova"->"Geolocation Demonstration" and determine if you see the same problem (i.e. with and without your key).

Another thing you could try is to try it outside of the XDK, i.e. build a simple web app that does the same call, open it up in Chrome and see if it shows the same behavior.

The difference I see between With and without the key is only on the call to "apiLoad", where the parameters are different, i think.  You could try setting a breakpoint there and see if you can determine where the problem is coming from.  At first glance, it sounds like it could be an infinite recursion problem, but don't know for sure.

 

0 Kudos
Mario_R_
Beginner
1,386 Views

Ok, with the demo works. I deleted everything and rebuilt it based on demos. Thank you!

I have a question: can you add a mark with JS to my personal map that persists over time (such as the new service MyMaps but has manual entry)? Or whenever you need to add them to view them?

0 Kudos
Reply