抓google.maps.Marker.prototype.setPosition調用覆蓋google.maps.Marker.prototype.setPosition返回錯誤
(function(){
var setPos = google.maps.Marker.prototype.setPosition;
google.maps.Marker.prototype.setPosition = function(latLng){
console.log(["setPos", latLng]);
setPos(latLng);
};
})();
返回錯誤
this.set is not a function
http://maps.gstatic.com/intl/cs_ALL/mapfiles/api-3/2/0/main.js
Line 28
爲什麼呢?謝謝