GUnload is not defined
|
#1 -
03/11/2011 17:54:13
|
Reporta abuso
|
Link permanente
|
|
GUnload is not defined
|
|
|
|
|
Hello,
When I replace my current version (3.4.0.0) with the new (3.4.1), I get a "GUnload is not defined" javascript error when the map is loaded. The map does not load completely, and is blank. Any ideas what the issue might be? My code works fine with the old version.
Thanks
|
|
|
|
|
|
#2 -
27/01/2012 15:40:26
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
Hi, please try to set the Gmaps Key property using the webconfig instead of the code
Regards.
|
|
|
|
|
|
|
#3 -
17/01/2012 9:12:05
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
I think we found our Problem! It is not loading the JavaScript google API from Google when the Map is in a MulitView. So this is not working: <asp:MultiView ID="MultiView" runat="server" ActiveViewIndex="0"> <asp:View runat="server"> <cc1:GMap ID="googleMap" runat="server" Width="550px" Height="350px" Key="ABQIAAAA2jiiz25xWLv3si2-Yt4ybRSgEJBLOoxBFCJSYEBVUsd7EILmkxSOmMO-nJmtlSVzInyMgcQIy1QOPA"/> </asp:View> </asp:MultiView> But exact the same code just without the MultiView loads the API: <cc1:GMap ID="googleMap" runat="server" Width="550px" Height="350px" Key="ABQIAAAA2jiiz25xWLv3si2-Yt4ybRSgEJBLOoxBFCJSYEBVUsd7EILmkxSOmMO-nJmtlSVzInyMgcQIy1QOPA"/>
To solve the Problem you have to put the script on the top of you page the API Google Script like this (with your own API Key): <script src="http://maps.google.com/maps?file=api&v=2&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="text/javascript"></script>
Its not a nice solution but it fixes the problem. So the question is why doesent it load the javascript api?
|
|
|
|
|
|
|
#4 -
16/01/2012 12:56:18
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
Hi we have also this Problem. We use Version 3.4.0 at the moment.
Thats in the ascx File: <cc1:GMap ID="googleMap" runat="server" Width="550px" Height="350px" enableHookMouseWheelToZoom="true" Language="de" Visible="false" />
And in the Codebehind, we use this code: googleMap.Key = objMitglieder.getConfigGoogleAPIKey(); googleMap.addControl(new GControl(GControl.preBuilt.LargeMapControl)); googleMap.mapType = GMapType.GTypes.Normal; googleMap.addControl(new GControl(GControl.preBuilt.MapTypeControl)); ...
We use your Library in a DotNetNuke Modul.
|
|
|
|
|
|
|
#5 -
12/01/2012 20:28:28
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
Hi,
Please give me some code or a link to your site.
Regards.
|
|
|
|
|
|
|
#6 -
09/01/2012 18:26:22
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
|
The same happens to me. This error occurs together with "GMap2 is not defined"
|
|
|
|
|
|
|
#7 -
10/11/2011 15:41:01
|
Reporta abuso
|
Link permanente
|
|
RE: GUnload is not defined
|
|
|
Hi! I'm also working with 3.4.1 and I have no problems...
Can you please paste here the code?
Regards.
|
|
|
|
|