js/timber.js
//Create the green tree marker at the right location
Create the green tree marker at the right location
Create the green tree marker at the right location
function createTree(tree, treeID) {
	var marker = new google.maps.Marker({
	icon: "js/tree.png",
	position: new google.maps.LatLng(tree.l[1], tree.l[0]),
	optimized: true,
	map: map
	});
	markers[treeID] = marker;
	marker.addListener('click', function(){
  		viewTree(treeID);
  })
}
function createTree ( tree , treeID ) { var marker = new google . maps . Marker ( { icon : "js/tree.png" , position : new google . maps . LatLng ( tree . l [ 1 ] , tree . l [ 0 ] ) , optimized : true , map : map } ) ; markers [ treeID ] = marker ; marker . addListener ( 'click' , function ( ) { viewTree ( treeID ) ; } ) }
Create the green tree marker at the right location
Create the green tree marker at the right location