2012-11-26 2 views
1

Google 크롬에서만이 문제가 있습니다. 그것을 요구하는 구글지도 v3에서 infobubble 사용Google지도 api 3 infobubble image clip in Google 크롬

미안, (그림 이동) 구글 크롬

를 제외한 모든 브라우저에서

google.maps.event.addListener(markers[$mapa_marker_id], 'click', function() {infoWindow$mapa_marker_id;infoWindow$mapa_marker_id.open(map, markers[$mapa_marker_id]);}); 

var infoWindow<?php echo $mapa_id ?> = new InfoBubble({ 
content: '<div style="overflow: hidden;"><strong><?php echo $mapa_desc?></strong><br><img style="border-radius:6px;overflow: hidden " src="backoffice/thumb.php?src=associados//<?php echo $mapa_foto?>&h=170 " /><br>Site: <a href="<?php echo $mapa_site?>" target="_blank"><?php echo $mapa_site?></a></div>', 
borderRadius: 6, 
disableAutoPan: true, 
}); 

모든 확인 아래 스크린 샷을 볼 수 있습니다.

Example of what is going on

+0

다른 사이트로 연결하는 것보다 선호하는 게시물에 이미지를 포함시킬 수 있습니다. – dmportella

+0

자, 나중에 편집 해 주셔서 감사합니다. – Filipe

답변

0

이 고정 않다면 이미지 크기를 지정하여보십시오.

content: '<div style="overflow: hidden;">...<img style="border-radius:6px;overflow: hidden; 
width:300px;height:200px" src="backoffice/thumb.php?src=associados... 
+0

이미지 크기가 고정 된 경우 문제가 해결되면서 이미지 크기가 고정되지 않으면 어떨까요? 이것은 괴괴 망측 한 Google 크롬에서만 일어난다. 우리 옛 친구 인 인터넷 익스플로러가 크롬을 사용하지 않는 것이 아닌가? :) – Filipe