Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top