-
AuthorPosts
-
November 10, 2017 at 10:30 pm #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
November 12, 2017 at 8:53 pm #875807Hey 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,
MikeNovember 14, 2017 at 12:53 am #876400Hi 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 –
November 14, 2017 at 5:47 pm #876696Hi Doug,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaNovember 14, 2017 at 7:31 pm #876746Sure thing Victoria. Please see info below.
Kind Regards,
DougNovember 17, 2017 at 4:43 am #877902Hi,
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,
IsmaelDecember 6, 2017 at 9:49 pm #885778Hi,
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
FlorianDecember 7, 2017 at 6:09 am #885938Hi,
@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 -
AuthorPosts
- The topic ‘Google Maps tool tips query’ is closed to new replies.