English 中文(简体)
页: 1 Html 不包括全部html
原标题:Google maps API map.openInfoWindowHtml is not including full html
  • 时间:2009-09-04 06:42:20
  •  标签:

i 具有以下法典:

   var point0 = new GLatLng(40.786729,-73.972766);
   var marker0 = new GMarker(point0);
   marker0.value = 0;
   GEvent.addListener(marker0, "click", function() {
   var myHtml = "<b><a href= http://Photos.Net ><br />01-0001</a></b><br /><br /><img src=http://adam.kantro.net/pics/Apartment/Thumbnails/Apartment-pic001.jpg><br/><br/><br/>";
   map.openInfoWindowHtml(point0, myHtml);
   });

问题是,图像显示在人口窗户之外。 是否有任何途径迫使人口窗口扩大以适应这一形象和整个html。

最佳回答

谷歌地图在信息窗口方面是一个很常见的问题。

  • Set the height explicitly on the image tag:
<img height="112" src=http://.../Apartment-pic001.jpg>
  • Check inherited styles being applied to the info window contents after it has been attached to the map.

回答下列问题:

• 如何确定谷歌地图的标识,使之达到顶峰?

问题回答




相关问题
热门标签