I am trying to use OverlappingMarkerSpiderfier with leaflet in my angular 4 app.
The module works fine in plain js and with angular 1.
But when i try to use it with angular 4, it gives me the error
ERROR ReferenceError: OverlappingMarkerSpiderfier is not defined
It was solved when I installed the overlapping-marker-spiderfier
npm i overlapping-marker-spiderfier
But then it gave an another error that
Uncaught ReferenceError: google is not defined
What should I do to get it working