I am developping a dynamic map for a client, wich needs to link custom post types (books) to the map depending where there were published.
I need to see a short resume of the book (the pop-up content) and a modal option where almost all the content of the linked post appears. The idea is to see a lot of details about the book without leave the map.
You can see an example of what I'm explaining here : hidden link
You can click on the "+" into the popup or click on "douce, douce vengeance" on the books list.
Is there a way to do that quite simply with toolset map ?
Hello and thank you for contacting the Toolset support.
I think it could be possible, but it might need some custom code. Toolset markers have titles and popups. The title is displayed on mouse hover, and the popup is open on click. Custom code will be needed to open the marker's popup without waiting for the user's click. You can trigger a click event on the marker with jQuery's trigger('click') function.
Regarding the modal windows, Toolset may include version 3 or 4 of the Twitter Bootstrap framework. You can rely on the modal's feature from the version of the framework of your choice. Put the button to trigger the modal inside the marker's popup.
- hidden link
- hidden link
I hope this helps. Let me know if you have any questions.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.