Google을 검색하고 stackoverflow
을 검색했지만이 문제에 solution
을 찾을 수 없습니다. 내 view
에 map
을로드하고 있습니다. 다음은BingMap - null 오류의 프로토 타입 가져 오기
<img
ng-src='https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/
{{Latitude.__text}},{{Longitude.__text}}/12?mapSize=77,120&
key={{Key}}'></img>
은 index.html을 내가 maps
를 호출하는 것을 시도하고 아래
<script type='text/javascript' src='https://www.bing.com/mapspreview/sdkrelease/mapcontrol?callback=loadMapScenario' async defer></script>
<script type='text/javascript' src='app/services/bing.js?' async defer></script>
내 controller
코드가, 얼마나 그로드됩니다. 당신이 기능 오지도를로드하는 다른 콜백 함수를 사용하는지도 스크립트 URL에서
TypeError: Cannot read property 'prototype' of null
at k (bing.js:11)
at h (bing.js:11)
at e (bing.js:11)
at t.l [as instance] (bing.js:11)
at h (bing.js:11)
at e (bing.js:11)
at t.l [as instance] (bing.js:11)
at new Microsoft.Maps.Map (bing.js:13)
at HTMLDocument.<anonymous> (file-location.js:121)
at j (jquery-1.11.0.min.js:2)
당신은'setTimeout (GetMap, 100)'을 의미 할 수도 있습니다. – Bergi
@Bergi : 그것은 다른 부분 자체에 오지 않으며, 손보다 먼저 던졌습니다. – Shane
두 개의 다른 Map API를 여기에 혼합하고 있습니다. JavaScript는로드 할 Bing Maps V8 컨트롤에 대한 스크립트 참조와지도를 렌더링 할 페이지의 div ID가 필요한 Bing Maps V8 웹 컨트롤을 사용하고 있습니다. 사용중인 이미지 태그는 Bing Maps REST 이미지 서비스 용이며지도의 단일 정적 이미지 만 반환합니다. 이 두 API를 함께 사용하는 것은 매우 드문 경우입니다. – rbrundritt