Okay
  Public Ticket #2483739
Hover on map marker location
Closed

Comments

  • zakiezabar started the conversation

    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.

  •  1,089
    ThemeNectar replied

    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 

    google.maps.event.addDomListener(div, "hover", function(event) {

    to the following:

     google.maps.event.addDomListener(div, "mouseover", function(event) {
    

    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