[Map Module 0.4.10e] No map

Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Wed, 2006-04-05 19:42

After upgradeing from 0.4.10d to 0.4.10e, I got this error:

Quote:
Parse error: parse error, unexpected $ in /hsphere/local/home/xxxx/xxxx.com/gallery2/modules/map/templates/infowindow/centered.inc on line 22

Replaced centered.inc with centered.inc from 0.4.10d (did not test the other infowindows).

Now the map does not show up.

Testing in IE 7.0, I got the error:

Quote:
Line: 224
Char: 5
Error: G_MAP_FLOAT_PANE undefined
Code: 0

Moz

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2006-04-06 14:29

Try the enclosed centered.inc, I have changed all of the templates to incorporate translation for the infowindow text but it seems I've made a mistake in this one and removed a closing bracket.

For the other problem, I have added that as a needed fix for API v2 and it turns out it doesn't even work because of all the changes Google has made :-)

so bottom line is those line can be removed in MapHeader.tpl: (see enclosed file)

    var tooltip = document.createElement("div");
    map.getPane(G_MAP_FLOAT_PANE).appendChild(tooltip);
    tooltip.style.visibility="hidden";

NOTE: remove the .txt extension on those files :)
-------------------------
The Termite :-)

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Thu, 2006-04-06 15:43

Thanks Termite! Map & infowindow works fine now :)

Moz :)