Hi,
I just started getting this error (today, 5/6/2015) on my site using the Google Maps Layer in Think Geo 7 API
:
“Uncaught TypeError: Cannot read property ‘Qa’ of null"
The error occurs at line 29 of maps.gstatic.com/maps-api-v3…11/main.js
I found the “solution”: modify the script tag from
<script type=“text/javascript” src=”<a href=“http://maps.google.com/maps/api/js?sensor=false&key=[my” rel=“nofollow” style=“color: #0000cc;”>http://maps.google.com/maps/api/js?...mp;key=[my</a> key]"></script>
to:
<script type=“text/javascript” src="<a href=“http://maps.google.com/maps/api/js?v=3.18&sensor=false&key=[my” rel=“nofollow” style=“color: #0000cc;”>http://maps.google.com/maps/api/js?...mp;key=[my</a> key]"></script>
This way, i should explicitly use version 3.18 of the API.
But how can i fix it using Think Geo API? I can’t see nor modify the script tag to an older version of GMAPS API, using thing GEO dll.
Could you help me?
Error on the lastest version of Google Maps API
Hi Ailton,
Welcome to Map Suite
Discuss Forums and thanks for you post.
I am guessing you are also using GoogleOverlay in your
application. Actually, this issue is caused by version updating of Google Maps.
The solution is set the JavaScriptLibraryUri of GooGleOVerlay manually. Please try code below:
GoogleOverlay google = new GoogleOverlay("Google Map");
google.JavaScriptLibraryUri = new Uri("maps.google.com/maps/api/js?v=3.18&sensor=false&key=");
Hope this would be helpful and any other question please feel free
to let us know.
Regards,
Kevin