Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #875394

    Hi –

    big fan – we make all our sites with your theme.
    The solution in this 2015 thread is to replace the entire shortcodes.js with a new shortcodes.js version from the moderator. Thread: https://kriesi.at/support/topic/google-maps-tooltips-2/
    Back then the latest Enfold version was 3.1.
    My question is whether that old solution will still work on the newest version of Enfold.
    If not, would you be able to update the solution now?

    Thank you for all your great support.

    Doug

    #875807

    Hey doug123,
    I would not recommend using this js as much has changed since then.
    To clarify your question, you would like the map tooltip to remain open until it is clicked again?

    Best regards,
    Mike

    #876400

    Hi Mike –

    Thanks for responding.

    I’m actually trying to do exactly what the previous person was. That old solution was successful for them, so I’m hoping there is a new solution for the new theme version.

    to quote:

    “I’ve set up a map with several locations/markers. Each marker has a tooltip with address details. The only problem now is that these tooltips stay visible. I’d prefer them to automatically hide again when clicking another marker. There are markers rather close to each other, so it becomes a pain having to close each tooltip before being able to click on another marker again.
    Can I change this, please?”

    For example: one tooltip/marker description is open. I would like it to close when I click a different marker. so that only one tooltip/marker description is open at a time.

    Thank you sir –

    #876696

    Hi Doug,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #876746

    Sure thing Victoria. Please see info below.

    Kind Regards,
    Doug

    #877902

    Hi,

    In the js > shortcodes.js file, look for this code around line 808.

    google.maps.event.addListener(marker, 'click', function() {
    				    infowindow.open(map,marker);
    				});
    

    Replace it with:

     google.maps.event.addListener(marker, 'click', function() {
                        if (openedInfoWindow != null)
                            openedInfoWindow.close();
    
                        infowindow.open(map,marker);
    
                        openedInfoWindow = infowindow;
    
                        google.maps.event.addListener(infowindow, 'closeclick', function() {
                            openedInfoWindow = null;
                        });
    
                        google.maps.event.addListener(map, 'click', function() {
                            infowindow.close();
                        });
                    });

    Don’t forget to remove the browser cache or refresh the scripts before checking the page.

    Best regards,
    Ismael

    #885778

    Hi,

    I would like to join this discussion, because I am trying to achive the same as descibed above by doug123:

    For example: one tooltip/marker description is open. I would like it to close when I click a different marker. so that only one tooltip/marker description is open at a time.

    I tried the solution provided by Ismael, but it is not working for me:
    After changing the shortcode.js as described above, the toolbox is not appearing at all, only the information from the address field appears as a mouse hover effect.
    (mylogin-data in private content)

    What I need is, that always only one toolbox is open, and that the toolbox closes itself when I click on another marker.

    BR
    Florian

    #885938

    Hi,


    @catchbudapest
    : We will require the FTP details in order to modify the script files. Please create a new thread and provide the FTP and WP details. We’ll close this thread for now.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Google Maps tool tips query’ is closed to new replies.