Conversation
supportHello, At some point in the past few months marker clustering stopped working on my maps. I didn’t make any changes to the maps so I’m not sure what would have caused it to stop working. I’ve tried double checking settings and everything seems to be correct although I didn’t make any changes to the settings in the past few months either. Thank you for your help. The page I need help with: [ log in to see the link]
The [cluster] shortcode exists?
Yes, I have [cluster] in the shortcode for all my maps. It used to work but now it doesn’t.
I don’t see any CSS or JS files being loaded for cluster. What I see, you are using an old version for leaflet (leaflet.css, leaflet.js). Actual is version 1.9.4. Are you using a caching plugin?
Oh, you’re right I was using an old version of leaflet. I just followed the instruction here: https://wordpress.org/support/topic/info-your-leaflet-version-may-be-out-of-sync-with-the-latest-default-version-1/ to update to the latest version. The markers still aren’t clustering though. Is there anything else I need to do to update leaflet?
Are you using a caching or an “optimizing” plugin?
I have the “Page Optimize” plugin, which I just tried deactivating but that didn’t solve the problem.
Now the version is fine, CSS and JS for the cluster are loading. But my cluster script is missing, I have no idea why. Maybe a conflict between theme and plugin. Please try it with a default theme. Then disable/enable the other plugins one by one to test if it works.
I turned all of the plugins off except for those related to leaflet and switched to the default theme and the map markers still aren’t clustering. You can see it here: https://staging-a636-currentlyrockhounding.wpcomstaging.com/washington/
I’m sorry, I can’t detect why this code does not appear in page source code: <script><!-- window.WPLeafletMapPlugin=window.WPLeafletMapPlugin||[];window.WPLeafletMapPlugin.push(function(){var clmarkers=L.markerClusterGroup({showCoverageOnHover:true,zoomToBoundsOnClick:true,spiderfyOnMaxZoom:true,removeOutsideVisibleBounds:true,disableClusteringAtZoom:8,maxClusterRadius:90,});leafext_markercluster_js(clmarkers);});</script> Next tipps: debug . Or use Query Monitor to detect, what is wrong.
I’ll try debugging. Thank you for your help!
The [cluster] shortcode exists?
Yes, I have [cluster] in the shortcode for all my maps. It used to work but now it doesn’t.
I don’t see any CSS or JS files being loaded for cluster. What I see, you are using an old version for leaflet (leaflet.css, leaflet.js). Actual is version 1.9.4. Are you using a caching plugin?
Oh, you’re right I was using an old version of leaflet. I just followed the instruction here: https://wordpress.org/support/topic/info-your-leaflet-version-may-be-out-of-sync-with-the-latest-default-version-1/ to update to the latest version. The markers still aren’t clustering though. Is there anything else I need to do to update leaflet?
Are you using a caching or an “optimizing” plugin?
I have the “Page Optimize” plugin, which I just tried deactivating but that didn’t solve the problem.
Now the version is fine, CSS and JS for the cluster are loading. But my cluster script is missing, I have no idea why. Maybe a conflict between theme and plugin. Please try it with a default theme. Then disable/enable the other plugins one by one to test if it works.
I turned all of the plugins off except for those related to leaflet and switched to the default theme and the map markers still aren’t clustering. You can see it here: https://staging-a636-currentlyrockhounding.wpcomstaging.com/washington/
I’m sorry, I can’t detect why this code does not appear in page source code: <script><!-- window.WPLeafletMapPlugin=window.WPLeafletMapPlugin||[];window.WPLeafletMapPlugin.push(function(){var clmarkers=L.markerClusterGroup({showCoverageOnHover:true,zoomToBoundsOnClick:true,spiderfyOnMaxZoom:true,removeOutsideVisibleBounds:true,disableClusteringAtZoom:8,maxClusterRadius:90,});leafext_markercluster_js(clmarkers);});</script> Next tipps: debug . Or use Query Monitor to detect, what is wrong.
I’ll try debugging. Thank you for your help!