Skip Navigation

[Resolved] show map popup content as default

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 3 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#2231649

Using the Map block, can I set the map popup content or the hint content as showing by default rather than on click

#2231811

Hello and thank you for contacting the Toolset support.

That's not possible out of the box or with a setting. But, I think that you can trigger a click on a marker using Javascript. Can you share a URL where we can see this map and tell what marker you want its popup to be open?

#2235925

Hello,
I do not have the maps public as yet.
The plugin I have used for many years is hidden link
It allows showing text and a link to "Directions"
This is very useful especially for Events at a single location. It would be cumbersome with many markers on a map, so a way to enable per marker would be great if you can help with that.

#2237337

I am sorry, I don't understand what you meant. Will your map hols one marker or several? If it is only one, we can trigger a click on it programmatically. But if there will be several, we can only do it for one marker. Once a marker is clicked it will open its popup and close any other marker's popup.

If the map will have only one marker, Something like this should help:

jQuery( function( $ ){
    $('map>area' ).click()
})

If you will have several markers on the map, or several maps on the page, you might need to adapt the code. If you need further help, please share a URL where we can see the map and the marker(s), and let me know what marker should be opened.