Fixed
Status Update
Comments
en...@google.com <en...@google.com>
lu...@google.com <lu...@google.com>
ko...@gmail.com <ko...@gmail.com> #3
I agree. It would be really nice and helpful to be able to change the postion of the Pegman control.
bc...@google.com <bc...@google.com> #4
Maybe something is cached in your browser that shouldn't be? Try a hard refresh. Both of your examples now work for me.
ko...@gmail.com <ko...@gmail.com> #5
Working now. Thanks
ta...@gmail.com <ta...@gmail.com> #6
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
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(
//コメント
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(
//タイトル
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
[Deleted User] <[Deleted User]> #7
Had this problem and empty cache + reload did the job.
Description
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:
Same code without visualRefresh:
Thanks,
Gavin