My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 5415: Infowindow domready doesn't fire when visualRefresh=true
6 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  May 2013


Sign in to add a comment
 
Reported by [email protected], May 20, 2013
Hi,

If you set google.maps.visualRefresh=true, then for some reason the infowindow domready event doesn't fire. This is with v3.exp.

Example here with visualRefresh=true:
www.gavinsayce.co.uk/test/domready-vexp-vr.html

Same code without visualRefresh:
www.gavinsayce.co.uk/test/domready-vexp.html


Thanks,
Gavin
May 20, 2013
Project Member #1 [email protected]
(No comment was entered for this change.)
Status: Confirmed
Owner: [email protected]
Labels: Internal-8843912
May 27, 2013
Project Member #2 [email protected]
 Issue 5411  has been merged into this issue.
May 27, 2013
Project Member #3 [email protected]
(No comment was entered for this change.)
Status: Fixed
May 27, 2013
#4 [email protected]
Thanks for marking it as fixed. The maps.googleapis.com/maps/api/js?v=3.exp code does not yet have the fix. Any idea how long it takes to become available from when it is marked as fixed?
Thanks
May 29, 2013
#5 [email protected]
Maybe something is cached in your browser that shouldn't be? Try a hard refresh. Both of your examples now work for me.
May 29, 2013
#6 [email protected]
Working now. Thanks
Jun 19, 2013
#7 [email protected]
now check new google maps design on my site(google.maps.visualRefresh=true), infowindow get out of shape.  

it's my code.
------------------------------------------------
	var infoWindow = new google.maps.InfoWindow({
		content: getInfoWindowContents(info)
	});

     google.maps.event.addListener(marker, 'click', function() {
    	/*20130117 infowindow使いまわしたら表示が変な気がする*/
    	if (currentInfoWindow) {
			currentInfoWindow.close();
    	}
    	infoWindow.open(gmap,marker);
    	currentInfoWindow = infoWindow;

          .....
    });


~.~.~~.~.~~.~.~~.~.~~.~.~~.~.~~.~.~~.~.~~.~.~~.~
function getInfoWindowContents(info){
	var infoWindowElem = J('<div>',{'class':'wInfoWindow'});
	if  (info.title == undefined){ //waterInfo
		//写真
		var picElem = J('<img>',{'class':'float_l', src:info.infoPicListRef[0].small_serving_url});
		var containerElem = J('<div>', {'class':'float_l'});
		//人の名前
		var nameElem = J('<span>',{'class':'name'}).text(info.applyUser.name);
		//コメント
		var commentElem = J('<span>').text(modShortText(info.comment));
		//場所
		var addressElem = J('<span>',{'class':'info_address'});
		infoWindowElem.append(picElem,
				containerElem.append(nameElem,commentElem,'<br>',addressElem));
	}else{ //actionInfo
		//写真
		var picElem = J('<img>',{'class':'float_l', src:info.infoPicListRef[0].small_serving_url});
		var containerElem = J('<div>', {'class':'float_l'});
		//人の名前
		var nameElem = J('<span>',{'class':'name'}).text(info.applyUser.name);
		//タイトル
		var titleElem = J('<span>').text(info.title);
		//対象期間
		var termElem = J('<span>').text(dateUtil.getStDate(info.term_s) + ' ~ ' + dateUtil.getStDate(info.term_e));
		infoWindowElem.append(picElem,
						containerElem.append(nameElem,titleElem,'<br>',termElem));
	}
	return J(infoWindowElem)[0];

} 
------------------------------------------------

Thanks 
Takashi
20130619.png
661 KB   View   Download
Aug 28, 2013
#8 [email protected]
Had this problem and empty cache + reload did the job.
Sign in to add a comment

Powered by Google Project Hosting