Is there a way to; 1. make the map marker show the dialog when hover-on, and close when hover-off. By default it was set to click to open and have to click on 'X' to close. 2. Not allow to drag/move the map. 3. Have multiple text lines in map marker location dialog.
There's no easy way to have HTML in the text formatting without coding the map without the page builder since the map shortcode will not render HTML when it creates the map
Hello,
Is there a way to;
1. make the map marker show the dialog when hover-on, and close when hover-off. By default it was set to click to open and have to click on 'X' to close.
2. Not allow to drag/move the map.
3. Have multiple text lines in map marker location dialog.
Thank you.
Hey zakiezabar,
As you've already started to do, these modifications would require script level edits to the salient/js/map.js file.
To open the infowindows on hover, you'll need to change your
to the following:
as per the Google API: https://developers.google.com/maps/documentation/javascript/events
There's no easy way to have HTML in the text formatting without coding the map without the page builder since the map shortcode will not render HTML when it creates the map