jawj / OverlappingMarkerSpiderfier-Leaflet

Deals with overlapping markers in the Leaflet maps API, Google Earth-style
253 stars 68 forks source link

angular 4 and overlappingMarkerSpiderfier #39

Closed anandhuajayakumar closed 6 years ago

anandhuajayakumar commented 6 years ago

I am trying t use overlappingmarkerspiderfier with leaflet in my angular 4 application. It worked with angular1 app, But the same is not for angular4 I installed the package with npm install npm i overlapping-marker-spiderfier

But when I add var oms = new OverlappingMarkerSpiderfier(mmap);

It gives the error that google not defined

When I add the google-map api to index.html the error is InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama

How can I solve this issue and get it working in angular4

troddick commented 6 years ago

Having the same issue. Were you able to solve this?

anandhuajayakumar commented 6 years ago

I did solve it. I rewrote the existing javascript version of overlappingMarkerSpiderfier for leaflet to typescript similar to the overlappingMarkerSpiderfier module.

jawj commented 6 years ago

Sounds great, @anandhuajayakumar! Closing ...

AmitBuchnik commented 4 years ago

hi @anandhuajayakumar can you share with me your solution?

peterkowalsky333 commented 3 years ago

Very cool from you both.The one rewrote something, the other one closes, and the probme "IS SOLVED" !. Don't care about the other ones about the bug !!!