0

주변을 둘러 보았지만 아무도 비슷한 문제가없는 것 같습니다.Google지도 API v3에 모든 마커가로드되지 않음

내가 5 개 위치에 대한 5 개 마커가있는지도를 만들려고 해요,하지만 어떤 이유로,지도는 여기

4 http://urloritdidnthappen.appspot.com/501001

그래서 내 코드에 대한 링크의로드 것 같다 내가 해봤 니?

저는이 마커 중 두 개가 너무 가깝다고 생각했습니다. 보여주지 않는 사람 (croEndMarker)은 뿔이있는 곳과 아주 가깝습니다. Marker. 나는 경적을 제거했다. 마커. 그러나 아무 소용이 없다.

그런 다음 나는 croEndMarker의 좌표를 hornsMarker의 좌표와 바꿨습니다. hornsMarker는 croEndMarker의 입장에 서있었습니다. 내가 여기서 배제하려고 한 것은 확실하지만 그 정확한 위치에 마커를 삼키는 블랙홀이 없다고 말하는 것만으로도 충분하다.

나는 내 다음 단계가 무엇인지 잘 모른다. 특정 지역에 배치 할 수있는 마커의 양에 제한이 있습니까?

TL을 제공 할 수 있습니다 당신이 어떤 도움을 아주 많이 모두 감사합니다, DR은 :지도는 모두 5 개 마커를 표시하지 않습니다, 도와주세요. 요청으로 http://urloritdidnthappen.appspot.com/501001

, 코드 자체 :

 <script type="text/javascript"> 
     function initialize() { 

      var brentX = new google.maps.LatLng(51.575363, -0.225273); 
      var finCen = new google.maps.LatLng(51.60096, -0.192459); 
      var horns = new google.maps.LatLng(51.58713,-0.121549); 
      var finPar = new google.maps.LatLng(51.568574, -0.102657); 
      var croEnd = new google.maps.LatLng(51.579656,-0.153775); 

      var mapOptions = { 
      center: new google.maps.LatLng(51.542492, -0.103394), 
      zoom: 12, 
      mapTypeId: google.maps.MapTypeId.ROADMAP 
      }; 
      var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); 

      var brentXMarker = new google.maps.Marker({ 
      position: brentX, 
      title: "Brent Cross" 
      }); 

      var finCenMarker = new google.maps.Marker({ 
      position: finCen, 
      title: "Finchley Central" 
      }); 

      var hornsMarker = new google.maps.Marker({ 
      position: horns, 
      title: "Hornsey" 
      }); 

      var finParMarker = new google.maps.Marker({ 
      position: finPar, 
      title: "Finsbury Park" 
      }); 

      var croEndMarker = new google.maps.Marker({ 
      position: croEnd, 
      title: "Crouch End" 
      }); 


     brentXMarker.setMap(map); 
     finCenMarker.setMap(map); 
     hornsMarker.setMap(map); 
     finParMarker.setMap(map); 
     croEndMarker.setmap(map); 

     } 
     google.maps.event.addDomListener(window, 'load', initialize); 
     </script> 

    <div id="map-canvas" style="width: 1200px; height: 600px;" /> 
+1

나는 그것을보고 내 Google 계정에 대한 액세스를 제공 할 수 있습니다

croEndMarker.setMap(map); 

FWIW

,이 같은 console log에 나타난 것이다. 나는 그렇게하지 않을 것이다. – Andy

+0

나는 샌드 박스가 아니다. 그리고 당신은 그들에게 당신의 이메일 주소를 볼 수있는 능력 이외의 것을 제공하지 않습니다. –

+0

여기에 코드를 입력하십시오. –

답변

1

camelcase을보세요. 그것은해야한다 :

TypeError: croEndMarker.setmap is not a function 
+0

세계에 facepalm이 충분하지 않습니다. 무한히 감사합니다. 항상 이런 종류의 눈을 가진 두 번째 눈을 가지고 있습니다. 편집 : 실제로 WordPress를 통해이 모든 작업을 수행하고 있으며, 오류에 대한보고는 없습니다. 나는 틀릴 수도 있고, 꽤 자주 일어나는 것 같다. 어느 쪽이든, 시간과 도움을 주셔서 감사합니다. –

관련 문제