'; } return property; }; barefootmap.prototype.prepareProperyForMap = function(property){ return property; }; barefootmap.prototype.populateMap = function(data){ var base = this; base.map.removeMarkers(); var infowindow_html = $('#infowindow').html(); for (var i = 0; i < data.length; i++) { var infowindow = Mustache.to_html( infowindow_html, this.prepareProperyForMap(data[i]) ); var marker = { lat: data[i].latitude, lng: data[i].longitude, title: data[i].propAddress, infoWindow : { content : infowindow }, click: function(e) { base.markerClick(marker); } }; var gmarker = base.map.addMarker(marker); } }; barefootmap.prototype.markerClick = function(marker) { }; var mymap = new barefootmap('barefootMapCnt', 'barefootMap'); mymap.init(); })();
