Я пытаюсь закрыть POI InfoWindow
, когда щелкните ссылку.Как закрыть POI InfoWindow?
Я перекрытая в setContent из InfoWindow вроде этого:
//override the built-in setContent-method
google.maps.InfoWindow.prototype.setContent = function (content) {
content = content.innerHTML + '<br/> <a href="#" onclick="onSavePlace();">Save place</a>';
//run the original setContent-method
fx.apply(this, arguments);
};
Примечание: Я не создавал InfoWindow
объект ссылки использовать close()
метод.
'Uncaught ReferenceError: FX не defined' – geocodezip
уаг FX = Google .maps.InfoWindow.prototype.setContent; –