내 질문에 대한 간단한 대답은 아마 어떤 도움을 주시면 감사하겠습니다.Google Earth 플러그인을 사용하여 Google.Load()
필자는 GE 플러그인으로 ExtJs를 사용합니다. 플러그인을 작동 시키려면 메인 HTML 페이지에 다음을 포함시켜야합니다.
<!DOCTYPE html>
<!-- Auto Generated with Sencha Architect -->
<!-- Modifications to this file will be overwritten. -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MDS</title>
<script src="https://www.google.com/jsapi" id="GoogleEarth"></script>
<script src="/static/googleearth/Ext.ux.GEarthPanel-1.3.js" id="GoogleEarth"> </script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript">
google.load("earth", "1");
google.load("maps", "2.xx");
</script>
</head>
<body></body>
</html>
이제 다음 코드를 제거하고 자바 스크립트로 실행하려고하면 페이지가 계속로드되는 것 같습니다.
<script type="text/javascript">
google.load("earth", "1");
google.load("maps", "2.xx");
</script>
코드를 제거하고 안에 붙여 넣기 만해도 .js 파일이므로 문제가 계속됩니다.
예를 들어
google.load("earth", "1");
google.load("maps", "2.xx");
스크립트 태그를 메인 페이지에 체류 할 것 같은 내용으로
<script type="text/javascript" src="/static/GoogleEarthStartup.js" id="Test"></script>
를 사용합니다.
어쨌든이 문제를 해결할 수 있습니까?
내가 묻는 주된 이유는 프로젝트를 저장할 때마다 내 기본 HTML을 덮어 쓰는 패키지를 사용하고 있기 때문입니다.
패키지를 사용하면 위와 같이 링크를 통해 스크립트를 추가 할 수 있지만 결과와 차이는 없습니다.
나는 형식 오류를 말하는 오류를 얻을 : google.earth는
하시기 바랍니다 조언을 정의되어 있지 않습니다.