문제

I am having a project which is displaying google map with a set of markers. But when i tried to add markerClusterer in my controller.js. The project does not compile and the console throws an error:

markerClusterer is not defined

I have referenced markerClusterer's library in html and I am using angular. Does any one have experience using markerClusterer with angular?

도움이 되었습니까?

해결책

I ran into the same issue using tombatossals' angular-leaflet directive. The examples feature markerCluster, although the dependency is not included. You have to load markerCluster as an additional library, and you should be good. The page has instructions on how to do that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top