Javascript 增加谷歌地图信息窗口的大小

Javascript 增加谷歌地图信息窗口的大小,javascript,google-maps,google-maps-api-2,ektron,openinfowindowhtml,Javascript,Google Maps,Google Maps Api 2,Ektron,Openinfowindowhtml,我有一张谷歌地图 还有一个信息窗口 现在这个尺寸是标准的,里面有很多文本 所以,我的老板让我增加工资 我们正在使用ektron CMS,因此我需要进入ektron工作区并编辑map.js 即使它是ektron,它仍然在使用谷歌地图 我设法找出哪个部分显示为信息窗口 这是代码中弹出信息窗口并在其中显示信息的部分 marker = new GMarker(point, icon); var infoWindow = map.getInfoWindow(); GEvent.addListener(ma

我有一张谷歌地图

还有一个信息窗口

现在这个尺寸是标准的,里面有很多文本

所以,我的老板让我增加工资

我们正在使用
ektron CMS
,因此我需要进入
ektron工作区
并编辑
map.js

即使它是ektron,它仍然在使用谷歌地图

我设法找出哪个部分显示为信息窗口

这是代码中弹出信息窗口并在其中显示信息的部分

marker = new GMarker(point, icon);
var infoWindow = map.getInfoWindow();
GEvent.addListener(marker, "mouseover", function () {
                    if (EMap.SearchData != 'content') {
                        if (qlink && qlink.length > 0) {
                            _userTB = '<span>' + title + '</span>';
                        }
                        else {
                            _userTB = title;
                        }
                        var theHtml1 = '<div id="IW_' + markerid + '" style="overflow:auto;width:240px;height:100px;">' + markerid + '. ' + _userTB + _summarytxt + '<br/>' + EGlobal.Format(EMap.Geolocation, new Array('javascript:EMap.SetAddress(\'' + EGlobal.Replace(address, '#', ' ') + '\',\'to\');', 'javascript:EMap.SetAddress(\'' + EGlobal.Replace(address, '#', ' ') + '\',\'from\');')) + '</div>';
                        map.openInfoWindowHtml(theHtml1);
                    }
                    else {
                        var theHtml2 = '<div id="IW_' + markerid + '" style="overflow:auto;width:240px;height:100px;">' + markerid + '. <span><b>' + title + '</b></span><br/>' + _summarytxt + '<br/>' + EGlobal.Format(EMap.Geolocation, new Array('javascript:EMap.SetAddress(\'' + EGlobal.Replace(address, '#', ' ') + '\',\'to\');', 'javascript:EMap.SetAddress(\'' + EGlobal.Replace(address, '#', ' ') + '\',\'from\');')) + '</div>';
                        marker.openInfoWindowHtml(theHtml2);
                    }
                });
整篇文章是关于

但是我不能把它们合并成1

特别是那个家伙使用的是带有3个参数的
map.openInfoWindowHtml()
,而
ektron
使用的是带有一个参数的
marker.openInfoWindowHtml()

你知道怎么做吗?Tkz很多


和。。我对谷歌地图很陌生。因此,如果我的问题浪费了您的时间,请原谅。

也许这个答案太简单了,但是您准备好在openInfoWindowHTML()调用中编辑这一行了吗


也许这个答案太简单了,但是您是否已经准备好在openInfoWindowHTML()调用中编辑这一行了


是的,这就是答案。我忽略了,因为。。当我尝试在firebug中更改这行代码时,只有
变大了。但是当我在
js
中更改时,整个信息窗口变大了。是的,这就是答案。我忽略了,因为。。当我尝试在firebug中更改这行代码时,只有
变大了。但是当我在
js
中更改时,整个信息窗口变大了。
var infoWindow = map.getInfoWindow();
var point = new GLatLng(0,0);
var marker = new GMarker(point);
GEvent.bind(marker,”click”,marker,function() {
    map.openInfoWindowHtml(this.getPoint(),this.address,{onOpenFn:function(){
        infoWindow.reset(this.getPoint(),infoWindow.getTabs(),new GSize(200,200),null,null);
    }});
});
style="overflow:auto;width:240px;height:100px;">