页: 1 依据自动更新多功能元件的内装内容。
I ve looked at the documentation for addListener
and addDomListener
, but it s all mouseovers and clicks and stuff. I need it to detect a change in the pure HTML content of the element in question, and if that value meets certain conditions, change the marker s icon based on it.
这里我使用的是:
infowindow=new google.maps.InfoWindow();
for (i=0;i<buildings.length;i++){
marker=new google.maps.Marker({
position:new google.maps.LatLng(buildings[i][4],buildings[i][5]),
map:map,
shadow:shadow,
icon:greenIcon,
title:buildings[i][0]+"
"+buildings[i][1],
zIndex:buildings[i][6]
});
}
我想加上一个<代码>Interval,与j Query一道,将buildings[i][7]
的阵容价值(不含上述内容)与所涉批次内容相等,然后作一些有条件的声明,以确定其是否符合更改标识的icon的适当标准。
但此后,我失去了如何根据动态更新的价值使标记真正改变。