  | 
		 		   | 
	  	    
          
            
			
	
			
			 
                Delete lat/long จาก map ออกจาก database เมื่อคลิกลิงค์ จะทำได้มั๊ยคะ หมายถึงสั่งให้ลบ marker ในอีกหน้า โดยกดปุ่มจะลบ marker สามารถทำได้มั๊ยคะ และต้องทำอย่างไร หรือถ้าไม่สามารถเป็นไปได้มีวิธีการอื่นแนะนำมั๊ยคะ 
  
 
Code (JavaScript) 
      function initMap() {
			var mapOptions = {
			  center: {lat: 16.7464756, lng: 100.1911128},
			  zoom: 14,
			}
			var maps = new google.maps.Map(document.getElementById("map"),mapOptions);
			var marker, info;
			$.getJSON( "json.php", function( jsonObj ) {
					//*** loop
					$.each(jsonObj, function(i, item){
						marker = new google.maps.Marker({
						   position: new google.maps.LatLng(item.latitude, item.longitude),
						   map: maps
						});
					  info = new google.maps.InfoWindow();
					  google.maps.event.addListener(marker, 'click', (function(marker, i) {
						return function() {
						  info.setContent(item.latitude+',' + item.longitude +'<br/>'+'<a href="login.php">'+'click</a> ');
						  info.open(maps, marker);
						}
					  })(marker, i));
					}); // loop
			 });
		}
 
 
  Tag : MySQL, HTML5, JavaScript               
                        | 
           
          
            
		
  ประวัติการแก้ไข 2018-10-18 17:47:19	
                             | 
           
          
            
              
                   | 
                   | 
                   | 
               
              
                   | 
                
                    
                      | Date :
                          2018-10-18 17:45:57 | 
                      By :
                          Piyatida_Ch | 
                      View :
                          1400 | 
                      Reply :
                          2 | 
                     
                  | 
                   | 
               
              
                   | 
                   | 
                   | 
               
              | 
           
          
            | 
			 | 
           
         
	    
		             | 
		
			  |