2014-02-06 1 views
0

녹아웃 바인딩 처리기를 쓰려고합니다. (글쓰기를 할 때 실제로 내 의도에 맞게 elses를 적용하는 것입니다.) Google지도 작업에 도움이됩니다. 나는 동적으로지도에 새로운 마커를 추가 할 수있는 지점에 입수했습니다,하지만 어떤 이유로 나는 문제가 내지도 객체에 clearAll 기능을 결합하는 데 http://jsfiddle.net/NJ2R5/15/Google Maps with 문제 clearAll

:

여기 내 바이올린입니다.

operations = valueAccessor().operations; 
      operations.clearAll.subscribe(function() { 
       console.log('CLearing All Markers'); 
      }); 

누군가가 한 번 살펴보고 내가 잘못 될 위치를 알려주면 감사 할 것입니다.

많은 감사

답변

0

내 문제는 내 자신의 코드는,이 읽어야 것을 나타납니다 :

operations = valueAccessor().operations; 
      operations.clearAll = function() { 
       debugger; 
       var bounds = map.getBounds(); 

      };