112
rated 0 times
[
115]
[
3]
/ answers: 1 / hits: 19482
/ 11 Years ago, wed, february 27, 2013, 12:00:00
I have a problem about gmaps v0.3 that when I addMarker How let infoWindow auto open. not when you onclick open.
<script type=text/javascript>
var map;
$(document).ready(function(){
map = new GMaps({
div: '#map',
lat: 39.908403,
lng: 116.397529,
zoom: 1,
});
var marker = new google.maps.Marker();
marker = {
lat: 39.908403,
lng: 116.397529,
title: 'Lima',
//map: map.map,
//animation: google.maps.Animation.BOUNCE,
//shape: {coords: [0,0,50,50], type: rect},
infoWindow: {
content: '<font color=red>hello world</font>'
}
}
map.addMarker(marker);
});
I want to when addMarker auto open infoWindow not click, what should I do.
please help me.
More From » jquery