http://robbieduggan.com/bridgedale-homes/ppc1/
在上面的内容中,单击“手风琴”中的“地图”标题。有谁知道什么可能导致奇怪的问题,只有地图的右上角显示?当您加载Firebug或Chromes Inspect Element功能时,它会自行修复。
欢迎所有建议:)
答案 0 :(得分:1)
尝试点击
加载地图$("#mapAccordionTrigger").click(function() {
if (GBrowserIsCompatible()) {
var lat = 53.559991;
var lng = -6.799526;
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(lat, lng), 15);
var infoTabs = [
new GInfoWindowTab("Address", "4 Bed Detached Houses<br />From €249,000"),
];
// Place a marker in the center of the map and open the info window
var marker = new GMarker(map.getCenter());
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowTabsHtml(infoTabs);
});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);
var point = new GLatLng(lat, lng);
panoramaOptions = {
latlng: point
};
pano = new GStreetviewPanorama(document.getElementById("streetview"), panoramaOptions);
GEvent.addListener(pano);
}
});