var ExperienceMap = PlacesMap.extend({
    _getInfoWindowHtmlPOI: function(place, marker) {
        var str = '<div><h3>' + place.name + '</h3>' +
            '<p>';
        if (place.neighbourhood.length > 0) {
            str += '<i>'+ place.neighbourhood + '</i>';
        }
        str += ' Ave. rating: ' + place.average_rating +
            ' Rated: ' + place.rated +      
            '</p></div>';

        str += '<p><a href="' + place.url + '">more</a></p>';

        return str;
    },

    _getInfoWindowHtml: function(place, marker) {
        if (place.rated != undefined) {
            return this._getInfoWindowHtmlPOI(place, marker);
        }

        return this._super(place, marker);
    },

    post_load: function(json_obj) {
        if (json_obj.sw_lat_bounds && json_obj.sw_lat_bounds && json_obj.sw_lat_bounds && json_obj.sw_lat_bounds) {
			this.setZoomFromBounds(json_obj.sw_lat_bounds, json_obj.sw_lng_bounds, json_obj.ne_lat_bounds, json_obj.ne_lng_bounds)
			this.setCenter((json_obj.sw_lat_bounds + json_obj.ne_lat_bounds) / 2, (json_obj.sw_lng_bounds + json_obj.ne_lng_bounds) / 2)
		}
    },

	ignore_if_one_val: function(objs) {
		return objs.length == 1 && objs[0].is_country;
	}
});
