1

IE10에서 http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/examples/advanced_example.html이라는 예제를 보면 점은 표시되지만 클러스터 아이콘은 표시하지 않습니다.MarkerClusterer가 IE10에 아이콘을 표시하지 않습니다.

누구든지 문제가 무엇인지 알고/수정이 있다면? 당신이 IFRAME 내부의지도를 표시하는 경우 저도 같은 문제를 했어

+0

같은 문제가 있습니다. –

답변

1

, 당신은 IE9 모드

<meta http-equiv="X-UA-Compatible" content="IE=9"/> 

에 브라우저를 강제로 페이지의 헤드 섹션 내부에 다음 코드를 추가해야 , 마스터 페이지에 추가되어야합니다.

n.b. 지도가 올바르게 작동하는지 확인하려면 브라우저를 닫았다가 다시 열어야합니다.

자세한 내용은 this working example을 참조하십시오.

2

브라우저를 IE9 모드로 강제 실행하는 것은 나쁜 습관입니다. 특히 MarkerClusterer 때문입니다. 대신이에서 라인 956 (https://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/markerclusterer/src/markerclusterer.js?r=110#956)에 코드를 수정 : 여기에

if (document.all) { 
    style.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(' + 'sizingMethod=scale,src="' + this.url_ + '");'); 
} else { 
    style.push('background:url(' + this.url_ + ');'); 
} 

을 :

style.push('background:url(' + this.url_ + ');'); 
1

나는이 문제에 대한 해결/또 다른 이유를 발견했다. 나는 javascript window.location.origin을 사용하여 참조했던지도 표시 자의 이미지를 사용하고있었습니다. Internet Explorer (IE) 10 이하 버전은 경로에 대해 '정의되지 않은'개체가 생성 된이 개체에 대한 액세스 권한이 없습니다.

해결책 : window.location.origin 개체를 사용하지 마십시오. 상대 경로 또는 다음 스크립트 사용 :

if (!window.location.origin) { 
     window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: ''); 
    } 

이 스크립트는 내 것이 아니며 인터넷에서 발견되었습니다. 희망이 도움이됩니다. 건배

관련 문제