Hiding and Showing the Geodir Map

This topic contains 1 reply, has 2 voices, and was last updated by  Kor 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #427595

    Julian Screawn
    Expired Member
    Post count: 20

    Hi, I would like to use the JQuery show and hide function to allow the user to open and close the GD map.

    1) If you visit the following page: http://alllocal.ca/test/ and click on the button the map will open but it does not load properly. Basically I hide the div with a Css display:none, and execute the following jquery code with the button:

    
    
    jQuery(document).ready(function($) {
    	
        $("#map-button").click(function(){
    		
            $("#myDIV").slideToggle();
    		
        });
    
    });

    2) It seems to be loading issue, so to make it work on the homepage (http://alllocal.ca/), I added the following code:

    
    
    jQuery(document).ready(function($) {
    
    	$.fx.speeds.xslow = 3000; 
    	
    	$("#map-search").fadeOut("xslow");
    
        $("#map-button").click(function(){
            $("#map-search").slideToggle();
    		
        });
    
    	
    });
     

    The map loads and then fades out. Then the user can click the button and the map is loaded properly.

    3) I know this is not a good solution, is there anyway I can load the map properly when the button is toggled.

    Thanks Julian.

    #427604

    Kor
    Moderator
    Post count: 16516

    Hi Julian,

    Thanks for your post. Unfortunately, we do not provide hands-on assistance with custom code and I hope you understand. You may find GD experts here http://geodirectoryexperts.com/ that could help you with this customization.

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount