jQuery-gMap icon indicating copy to clipboard operation
jQuery-gMap copied to clipboard

Open Infowindow by default

Open ghost opened this issue 9 years ago • 3 comments

Hi there,

I have created a marker like this:

    markers: [
      {
        address: "Some Street",
        html: "<div class='gmaplogo'><img src='images/logo.png' title='' alt=''/></div>",
        icon: {
          image: "images/map-icon-red.png",
          iconsize: [32, 32],
          iconanchor: [14,44]
        }
      }
    ],

I can't find a way to open the info window by default :/

ghost avatar Sep 21 '15 00:09 ghost

Hey,

you can use the popup property for this:

markers: [
      {
        address: "Some Street",
        html: "...",
        icon: {
          image: "images/map-icon-red.png",
          iconsize: [32, 32],
          iconanchor: [14,44],
          popup: true // property belongs to the marker!
        }
      }
    ],

istvangal avatar Nov 16 '15 15:11 istvangal

popup not working to me

rocchidavide avatar Jan 18 '16 09:01 rocchidavide

Don't add popup in icon property.

markers: [
                  {
                      address: "Some Street",
                      html: "...",
                      icon: {
                                  image: "images/map-icon-red.png",
                                  iconsize: [32, 32],
                                  iconanchor: [14,44],
                            }
                            popup: true
                    }
],

isimicic avatar Mar 24 '16 22:03 isimicic