0
我想在左側面板中添加商店的新字段。我發現我需要擴展這個原型方法,但我不知道如何去做。在店鋪定位器中添加新的字段谷歌地圖api
storeLocator.Store.prototype.getInfoWindowContent = function() {
if (!this.content_) {
// TODO(cbro): make this a setting?
var fields = ['title', 'address', 'phone', 'misc', 'web'];
var html = ['<div class="store">'];
html.push(this.generateFieldsHTML_(fields));
html.push(this.generateFeaturesHTML_());
html.push('</div>');
this.content_ = html.join('');
}
return this.content_;
};
我需要添加字段列表中的 「域」 以上。請幫忙。