Mio Bocereg
Mio Bocereg

Reputation: 3

How to Use the Correct Google Map Code in Jquery Tabs?

Can someone help me correctly integrate Google maps in jQuery tabs.

I need to integrate 2 maps.

One map that retrieves the Map, and another map that retrieves the route planner.

I have a problem with the code, I get this error in Firebug:

TypeError: a is null
[Break On This Error]   

... new S((this.H+this.J)/2,(this.G+this.L)/2)};var zh=yh(-ca,-ca,ca,ca),Ah=yh(0,0,...

Upvotes: 0

Views: 129

Answers (2)

Beetroot-Beetroot
Beetroot-Beetroot

Reputation: 18078

You load http://maps.google.com/maps/api/js in a script tag then lazy-load it again in an onload handler causing the original to be overwritten and negating some of the code that executes before initialize() initialize2().

Upvotes: 1

Seth
Seth

Reputation: 1373

You may be getting this error due to using the same variable name for the map:

var map = ...

Try using 2 different variables:

var map, map2;

map = new google.maps.Map(document.getElementById("map_go"), myOptions);
map2 = new google.maps.Map(document.getElementById("map_go_full"), myOptions);

Upvotes: 1

Related Questions