(1)清除球(ballon)
在mouseout、mouseup事件處理時可選擇清除球
ge.setBalloon(null);
(2)清除地標
ge.getFeatures().removeChild(placemark);
(3)清除線段
ge.getFeatures().removeChild(lineMark);
(4)如果是個地標或線段數組(多個),清除方法如下
i=0;
while(placeMark[i] !=null)
{
ge.getFeatures().removeChild(pacemark[i]);
i++;
}