Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top