<commit_before>//new global "map" and marker variables
		var map = null;
		//The URL of the script that sends the data from the results spreadsheet to the map
		var DATA_SERVICE_URL = "https://script.google.com/macros/s/AKfycbw--oZZPlJ76nTEnwf8K4Y7SfwIsBNYhJWQnMn3Ib7grQR0IC6n/exec?jsonp=callback";
		//Marker variables
		var marker = null;
				
		//Set these variables as global to allow use anywhere
		//These Variables hold the submitted data
		var UserData = new Array;
		var UserPts = new Array;
		var pointArray;
		var heatmap;
		var existingRoutesLayer;
		var flayer;
		var hflayer;
		var markers = []
		
		//New infowindow variable this is used for the clicking infowindow
		var infowindow = new google.maps.InfoWindow(
			{ 
			size: new google.maps.Size(150,100)
			});
		
		//A function to create the marker and set up the event window function 
		//This function is for clicking on the map to create markers
		//This is the window for submitting data
		function createMarker(latlng, name, html) {
			var contentString = html;
			var marker = new google.maps.Marker({
				position: latlng,
				map: map,
				zIndex: Math.round(latlng.lat()*-100000)<<5
				});

				google.maps.event.addListener(marker, 'click', function() {
					infowindow.setContent(contentString); 
					infowindow.open(map,marker);
					});
				google.maps.event.trigger(marker, 'click');    
				return marker;
			}
		 
		// This function creates the map
		function initialize() {
		
			//Map options, where to centre the map, map type, and zoom
			var myLatLng = new google.maps.LatLng(48.43, -123.3657);
			var mapOptions = {
				zoom: 13,
				//Center is set to victoria
				center: myLatLng,
				mapTypeControl: true,
				mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
				navigationControl: true,
				//Map type
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
		
			//Create map object	
			map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
		    
		    // City of Victoria existing bike routes KML
            var existingRoutesLayer = new google.maps.KmlLayer({
              url: 'http://www.victoria.ca/assets/City~Hall/Forms~Publications/BikeRoutes.kmz',
              suppressInfoWindows: true, //This line removes the default info window
              map: map 
            });
            // existingRoutesLayer.setMap(map)

			// Add bike trails layer from google
			var bikeLayer = new google.maps.BicyclingLayer(); 	
			bikeLayer.setMap(map);
		  
			//This varialble holds the state of the fusion tables heatmap
			tfToggle = false;
			
			//ICBC data fusion layer
			flayer = new google.maps.FusionTablesLayer({
				query: {
				  select: 'Coords',
				  from: '1WDge-1KzFL09clevuULwEP63ucgI6aAvwKnChGM'
				},
				<commit_msg>Add Victoria bike rakes KML<commit_after>//new global "map" and marker variables
		var map = null;
		//The URL of the script that sends the data from the results spreadsheet to the map
		var DATA_SERVICE_URL = "https://script.google.com/macros/s/AKfycbw--oZZPlJ76nTEnwf8K4Y7SfwIsBNYhJWQnMn3Ib7grQR0IC6n/exec?jsonp=callback";
		//Marker variables
		var marker = null;
				
		//Set these variables as global to allow use anywhere
		//These Variables hold the submitted data
		var UserData = new Array;
		var UserPts = new Array;
		var pointArray;
		var heatmap;
		var existingRoutesLayer;
		var flayer;
		var hflayer;
		var markers = []
		
		//New infowindow variable this is used for the clicking infowindow
		var infowindow = new google.maps.InfoWindow(
			{ 
			size: new google.maps.Size(150,100)
			});
		
		//A function to create the marker and set up the event window function 
		//This function is for clicking on the map to create markers
		//This is the window for submitting data
		function createMarker(latlng, name, html) {
			var contentString = html;
			var marker = new google.maps.Marker({
				position: latlng,
				map: map,
				zIndex: Math.round(latlng.lat()*-100000)<<5
				});

				google.maps.event.addListener(marker, 'click', function() {
					infowindow.setContent(contentString); 
					infowindow.open(map,marker);
					});
				google.maps.event.trigger(marker, 'click');    
				return marker;
			}
		 
		// This function creates the map
		function initialize() {
		
			//Map options, where to centre the map, map type, and zoom
			var myLatLng = new google.maps.LatLng(48.43, -123.3657);
			var mapOptions = {
				zoom: 13,
				//Center is set to victoria
				center: myLatLng,
				mapTypeControl: true,
				mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
				navigationControl: true,
				//Map type
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
		
			//Create map object	
			map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
		    
		    // City of Victoria existing bike routes KML
            var existingRoutesLayer = new google.maps.KmlLayer({
              url: 'http://www.victoria.ca/assets/City~Hall/Forms~Publications/BikeRoutes.kmz',
              //suppressInfoWindows: true, //Suppress the rendering of info windows when layer features are clicked
              map: map,
              preserveViewport: true 
              
            });

            // City of Victoria bike racks KML
            var existingRoutesLayer = new google.maps.KmlLayer({
              url: 'http://www.victoria.ca/assets/City~Hall/Forms~Publications/BikeRacks.kmz',
              //suppressInfoWindows: true, //Suppress the rendering of info windows when layer features are clicked
              map: map,
              preserveViewport: true // 

            });
            // existingRoutesLayer.setMap(map)

			// Add bike trails layer from google
			var bikeLayer = new google.maps.BicyclingLayer(); 	
			bikeLayer.setMap(map);
		  
			//This varialble holds the state of the fusion tables heatmap
			tfToggle = false;
			
			//ICBC data fusion layer
			flayer = new google.maps.FusionTablesLayer({
				query: {
				  select: 'Coords',
				  from: '1WDge-1KzFL09clevuULwEP63ucgI6aAvwKnChGM'
				},
				
{'fraction_non_alphanumeric': 0.0942124301216705, 'fraction_numerical': 0.013811246300559027, 'mean_word_length': 2.7204892966360856, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5852755', 'n_tokens_mistral': 2259, 'n_tokens_neox': 1859, 'n_words': 547}