App now loads map icons from public folder. Also added icons for the sighting types photo and other.
This commit is contained in:
		
							parent
							
								
									0a8120e826
								
							
						
					
					
						commit
						83982d8f88
					
				
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/cage.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/cage.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 12 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/marten-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/marten-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 21 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/other-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/other-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.7 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/paws.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/paws.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/photo-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/photo-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 23 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								public/mapicons/tire-icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/mapicons/tire-icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 72 KiB  | 
@ -212,25 +212,32 @@ export class MapContainer extends Component {
 | 
			
		||||
     * sighting type.
 | 
			
		||||
     */
 | 
			
		||||
    sightingIcon = (type) => {
 | 
			
		||||
        let pinIcon
 | 
			
		||||
        let pinIcon;
 | 
			
		||||
 | 
			
		||||
        switch(type) {
 | 
			
		||||
            case 'visual':
 | 
			
		||||
                pinIcon = 'https://i.postimg.cc/nhYXGQNp/marten-icon.png'
 | 
			
		||||
                break
 | 
			
		||||
                pinIcon = '/mapicons/marten-icon.png';
 | 
			
		||||
                break;
 | 
			
		||||
            case 'roadkill':
 | 
			
		||||
                pinIcon = 'https://i.postimg.cc/xdfcx1SH/tire-icon.png'
 | 
			
		||||
                break
 | 
			
		||||
                pinIcon = '/mapicons/tire-icon.png';
 | 
			
		||||
                break;
 | 
			
		||||
            case 'viewed_tracks':
 | 
			
		||||
                pinIcon = 'https://i.postimg.cc/7P761WCS/paws.png'
 | 
			
		||||
                break
 | 
			
		||||
                pinIcon = '/mapicons/paws.png';
 | 
			
		||||
                break;
 | 
			
		||||
            case 'trapped':
 | 
			
		||||
                pinIcon = 'https://i.postimg.cc/Y9LSsXdK/cage.png'
 | 
			
		||||
                break
 | 
			
		||||
                pinIcon = '/mapicons/cage.png';
 | 
			
		||||
                break;
 | 
			
		||||
            case 'photo':
 | 
			
		||||
                pinIcon = '/mapicons/photo-icon.png'
 | 
			
		||||
                break;
 | 
			
		||||
            case 'other':
 | 
			
		||||
                pinIcon = '/mapicons/other-icon.png'
 | 
			
		||||
                break;
 | 
			
		||||
            default:
 | 
			
		||||
                break
 | 
			
		||||
        }
 | 
			
		||||
        return pinIcon
 | 
			
		||||
        
 | 
			
		||||
        return pinIcon;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    formatDate = date => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user