• currentlyr

    (@currentlyr)


    Hello,

    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]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor hupe13

    (@hupe13)

    The [cluster] shortcode exists?

    Thread Starter currentlyr

    (@currentlyr)

    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?

    Thread Starter currentlyr

    (@currentlyr)

    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?

    Thread Starter currentlyr

    (@currentlyr)

    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.

    Thread Starter currentlyr

    (@currentlyr)

    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.

    Thread Starter currentlyr

    (@currentlyr)

    I’ll try debugging. Thank you for your help!

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.