Usuario anónimo  |  Ingresar  |  Regístrate
Mensaje dentro Bugs and Improvements

GUnload is not defined

Responder 
#1 - 03/11/2011 17:54:13 Reporta abuso | Link permanente
bwilliams
Fecha de registro: 13/10/2009
5 posts en todos los foros
GUnload is not defined

Responder Citar
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
Volver arriba

Respuestas
De en 15
#2 - 27/01/2012 15:40:26 Reporta abuso | Link permanente
subgurim
Fecha de registro: 18/10/2006
2003 posts en todos los foros
RE: GUnload is not defined

Responder Citar
Hi, please try to set the Gmaps Key property using the webconfig instead of the code

Regards.
Volver arriba

#3 - 17/01/2012 9:12:05 Reporta abuso | Link permanente
simon.hostettler@comperio.ch
Fecha de registro: 02/08/2011
3 posts en todos los foros
RE: GUnload is not defined

Responder Citar
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&amp;v=2&amp;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?
Volver arriba

#4 - 16/01/2012 12:56:18 Reporta abuso | Link permanente
simon.hostettler@comperio.ch
Fecha de registro: 02/08/2011
3 posts en todos los foros
RE: GUnload is not defined

Responder Citar
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.

Volver arriba

#5 - 12/01/2012 20:28:28 Reporta abuso | Link permanente
subgurim
Fecha de registro: 18/10/2006
2003 posts en todos los foros
RE: GUnload is not defined

Responder Citar
Hi,

Please give me some code or a link to your site.

Regards.
Volver arriba

#6 - 09/01/2012 18:26:22 Reporta abuso | Link permanente
jkancio
Fecha de registro: 29/07/2011
4 posts en todos los foros
RE: GUnload is not defined

Responder Citar
The same happens to me. This error occurs together with "GMap2 is not defined"
Volver arriba

#7 - 10/11/2011 15:41:01 Reporta abuso | Link permanente
subgurim
Fecha de registro: 18/10/2006
2003 posts en todos los foros
RE: GUnload is not defined

Responder Citar
Hi!
I'm also working with 3.4.1 and I have no problems...

Can you please paste here the code?

Regards.
Volver arriba
De en 15

Powered by Subgurim.NET