Marker Cluster BUG

I am using an Appfarm map component in one view, and a coded component using Leaflet code to interact with a map in another view.

When navigating from the coded component view to the Appfarm map the site crashes and I get error:

Name
TypeError


Message
L.MarkerClusterGroup is not a constructor


Trace
TypeError: L.MarkerClusterGroup is not a constructor
    at L.markerClusterGroup

So I saw that we had Clustering enabled on the markers in the Appfarm map. When I disabled this the error was fixed. So, I assume there are some Appfarm bug. Just wanted to let you know.

1 Like

Hi,

I was unable to recreate the issue in our Dev Environment.
I have however registered a challenge on the issue. If you have anymore details, then please let us know :slightly_smiling_face:

Are you 100% sure that error is not thrown by the Leaflet code in your Coded Component. It seems like both your Coded Component and Appfarm uses Leaflet for maps.

// Erik