Plugin Contributor
hupe13
(@hupe13)
The [cluster] shortcode exists?
Yes, I have [cluster] in the shortcode for all my maps. It used to work but now it doesn’t.
Plugin Contributor
hupe13
(@hupe13)
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://ww.wp.xz.cn/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?
Plugin Contributor
hupe13
(@hupe13)
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.
Plugin Contributor
hupe13
(@hupe13)
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/
Plugin Contributor
hupe13
(@hupe13)
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!