Anonymous user  |  Log in  |  Create Account
Message inside Bugs and Improvements

GUnload is not defined

Answer 
#1 - 11/3/2011 5:54:13 PM Reporta abuso | PermaLink
bwilliams
Fecha de registro: 10/13/2009
5 posts en todos los foros
GUnload is not defined

Answer Quote
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
Top

Answers
De en 15
#2 - 1/27/2012 3:40:26 PM Reporta abuso | PermaLink
subgurim
Fecha de registro: 10/18/2006
2002 posts en todos los foros
RE: GUnload is not defined

Answer Quote
Hi, please try to set the Gmaps Key property using the webconfig instead of the code

Regards.
Top

#3 - 1/17/2012 9:12:05 AM Reporta abuso | PermaLink
simon.hostettler@comperio.ch
Fecha de registro: 8/2/2011
3 posts en todos los foros
RE: GUnload is not defined

Answer Quote
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?
Top

#4 - 1/16/2012 12:56:18 PM Reporta abuso | PermaLink
simon.hostettler@comperio.ch
Fecha de registro: 8/2/2011
3 posts en todos los foros
RE: GUnload is not defined

Answer Quote
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.

Top

#5 - 1/12/2012 8:28:28 PM Reporta abuso | PermaLink
subgurim
Fecha de registro: 10/18/2006
2002 posts en todos los foros
RE: GUnload is not defined

Answer Quote
Hi,

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

Regards.
Top

#6 - 1/9/2012 6:26:22 PM Reporta abuso | PermaLink
jkancio
Fecha de registro: 7/29/2011
4 posts en todos los foros
RE: GUnload is not defined

Answer Quote
The same happens to me. This error occurs together with "GMap2 is not defined"
Top

#7 - 11/10/2011 3:41:01 PM Reporta abuso | PermaLink
subgurim
Fecha de registro: 10/18/2006
2002 posts en todos los foros
RE: GUnload is not defined

Answer Quote
Hi!
I'm also working with 3.4.1 and I have no problems...

Can you please paste here the code?

Regards.
Top
De en 15

Powered by Subgurim.NET