// Make dat map doe!

/* ****** MODEL ******** */

var neighborhoodSpots = [
		{
			title: "Saggio",
			location: {lat: 40.851473, lng: -73.939588},
			type: "Restaurant"
		},
    	{
    		title: "Mambi Steakhouse",
    		location: {lat: 40.84772, lng: -73.938251},
    		type: "Restaurant"
    	},
    	{
    		title: "Planet Fitness",
    		location: {lat: 40.847326, lng: -73.937638},
    		type: "Gym"
    	},
    	{
    		title: "Le Cheile",
    		location: {lat: 40.851495, lng: -73.939988},
    		type: "Restaurant"
    	},
    	{
    		title: "Elite Cleaners",
    		location: {lat: 40.843097, lng: -73.939438},
    		type: "Dry Cleaners"
    	},
    	{
    		title: "Columbia Wine Co",
    		location: {lat: 40.842125, lng: -73.939272},
    		type: "Liquor Store"
    	}
	]



/* ****** VIEWMODEL ******** */

var ViewModel = function() {
	var self = this;

	this.places = ko.observableArray([]);

	neighborhoodSpots.forEach(function(locationItem) {
		self.places.push(new listView(locationItem));
	});

	this.selectedType = ko.observable();
	this.clearFilter = function() {
		this.selectedType(null)
	}
}

ko.applyBindings(new ViewModel());

/* ****** VIEW ******** */

var listView = function(data) {
	this.title = ko.observable(data.title);
	this.location = ko.observable(data.location);
	this.type = ko.observable(data.type);
}

// ******** MAP ******** //


var map;

var initMap = function() {
	map = new google.maps.Map(document.getElementById('map'), {
		center: {lat: 40.843436, lng: -73.934794},
		zoom: 14
	});
};


/*function TicketsViewModel() {
	this.tickets = [
	{name: "Economy", price: 199},
	{name: "Business", price: 449},
	{name: "First Class", price: 11199}
	];
	this.chosenTicket = ko.observable();
	this.resetTicket = function() {
		this.chosenTicket(null)
	}
}
ko.applyBindings(new TicketsViewModel());*/
@@ -780,17 +780,17 @@
 %0A%09%5D%0A%0A%0A%0A/
-*
+/
  ****** 
@@ -804,28 +804,32 @@
 EL ******** 
-*
+/
 /%0A%0A
+/*%0A%0A
 var ViewMode
@@ -1149,19 +1149,22 @@
 el());%0A%0A
-/* 
+*/%0A%0A//
 ****** V
@@ -1172,28 +1172,32 @@
 EW ******** 
-*
+/
 /%0A%0A
+/*%0A%0A
 var listView
@@ -1346,16 +1346,20 @@
 pe);%0A%7D%0A%0A
+*/%0A%0A
 // *****
@@ -1543,13 +1543,15 @@
 %7D);%0A
-
 %7D;%0A%0A%0A
+%0A%0A
 /*fu

comment out all but map