jQuery-gMap
jQuery-gMap copied to clipboard
Open Infowindow by default
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 :/
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!
}
}
],
popup not working to me
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
}
],