desmetro / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 0 forks source link

Javascript error in file gmaps4jsf-map.js #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm trying to make a m:extendedHtmlInformationWindow for every marker in my 
map
The map is displayed and the markers too; but when I click on the marker toshow 
the info window; 
I obtain these error : ReferenceError: Can't find variable: MaxContentTab and 
the function of the js file is:

google.maps.Map.prototype.encodeTab = function(id, title, content, node, 
onSelect) {
        var t = new MaxContentTab(title, content ? content : document.createElement('div'));
gmaps4jsf-map.js:420ReferenceError: Can't find variable: MaxContentTab
        t.id = id;
        if (node) {
            this.addTabFunction(t, function(tab) {
                var domNode = document.getElementById(node);
                if (domNode) {
                    domNode.style.display = 'block';
                    domNode.style.width = '98%';
                    domNode.style.height = '98%';
                    tab.getContentNode().appendChild(domNode);
                }
            });
        }
        this.addTabFunction(t, onSelect);
        return t;
    };

I'm using gmaps4jsf 1.1.4
Mac OS X Leopard

I don't know if it is a issue but it's blocking me a lot!
Thanks

Original issue reported on code.google.com by davide.b...@gmail.com on 12 Feb 2012 at 7:05

GoogleCodeExporter commented 8 years ago
Fixed!
The problem was that I didn't include <script type="text/javascript" 
src="http://gmaps-utility-library-dev.googlecode.com/svn/tags/tabbedmaxcontent/1
.0/src/tabbedmaxcontent.js"/>

Original comment by davide.b...@gmail.com on 19 Feb 2012 at 10:01

GoogleCodeExporter commented 8 years ago

Original comment by Hazem.sa...@gmail.com on 14 Mar 2013 at 12:18

GoogleCodeExporter commented 8 years ago
Thanks Hazem!

Original comment by davide.b...@gmail.com on 14 Mar 2013 at 7:37