Separation Not Working

New home Forums Gold Add-on Separation Not Working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #86447
    JBB
    Participant

    Hello, I’m using the Post Location map (working) with Clustering (working) and Separation (not working) all enabled. The Separation does not seem to be working, no matter how much I toggle the settings or clear the caches.

    I have a test map on my staging site here: https://goldenrod-hornet-608000.hostingersite.com/post-map/

    Any ideas what might be wrong?

    • This topic was modified 1 week, 1 day ago by JBB.
    #86448
    JBB
    Participant

    I forgot to add “Edmonds, WA” or “Seattle, WA” are good locations to test.

    #86456
    Matthew
    Moderator

    Hi there,

    Thank you for getting in touch with us, we do appreciate your time.

    I have run a few test and it appears that this is an issue when determining the visibilty of the leaflet marker object on the map.

    Could you please save the below custom JS code into the “Custom JS” setting block (Maps -> Settings -> Custom Scripts):

    jQuery(function($){
    	WPGMZA.LeafletMarker.prototype.getVisible = function(visible){
    		let element = this.getNativeElement();
    		if(element){
    			return element.style.display != "none";
    		}
    		return false;
    	}
    })

    Once done, please clear your site and browser cache and let me know if this resolves the issue?

    Kindest Regards
    Matthew Lau

    #86462
    JBB
    Participant

    Thanks so much for looking into my issue and providing the code – it appears to have fixed it!
    Love it!

    #86466
    Matthew
    Moderator

    Hi John,

    Thank you so much for your response and confirmation.

    That is great to hear and it was my pleasure.

    Have a great day further!

    Kindest Regards,
    Matthew Lau

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.