Forum Discussion

Blaenzo's avatar
Blaenzo
Advocate II
7 years ago
Solved

Leaflet.markercluster package in custom visual

Hi,   I would like to use the 'Leaflet.markercluster' package in conjuction with the Google Maps API, but I run into the following issue:   On a clean custom visual project I ran: npm i leaflet@...
  • Blaenzo's avatar
    7 years ago

    Not sure why but it seems to break if either of the following packages are newer than the folling versions:

        "@types/leaflet": "^1.0.69",
        "@types/leaflet.markercluster": "^1.0.0",

    Later I realized this does not work on Google Maps and decided to use a combination of:

    'js-marker-clusterer' and 'OverlappingMarkerSpiderfier'