add OpenTopoMap support
This commit is contained in:
		
							parent
							
								
									414d330aea
								
							
						
					
					
						commit
						dacfa92970
					
				| @ -158,6 +158,13 @@ $(document).ready(function() { | |||||||
| 			attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' | 			attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' | ||||||
| 		}).addTo(map); | 		}).addTo(map); | ||||||
| 		break; | 		break; | ||||||
|  | 	case 'opentopo': // add OpenTopoMap tile layer https://opentopomap.org/
 | ||||||
|  | 		map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']); | ||||||
|  | 		L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', | ||||||
|  | 		{ | ||||||
|  | 			attribution: 'Kartendaten: © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, SRTM | Kartendarstellung: © <a href="http://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>)' | ||||||
|  | 		}).addTo(map); | ||||||
|  | 		break;	 | ||||||
| 	case 'osmde': // add OpenStreetMap.DE tile layer, default
 | 	case 'osmde': // add OpenStreetMap.DE tile layer, default
 | ||||||
| 		null; | 		null; | ||||||
| 	default: | 	default: | ||||||
|  | |||||||
| @ -158,6 +158,13 @@ $(document).ready(function() { | |||||||
| 			attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' | 			attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' | ||||||
| 		}).addTo(map); | 		}).addTo(map); | ||||||
| 		break; | 		break; | ||||||
|  | 	case 'opentopo': // add OpenTopoMap tile layer https://opentopomap.org/ | ||||||
|  | 		map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']); | ||||||
|  | 		L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', | ||||||
|  | 		{ | ||||||
|  | 			attribution: 'Kartendaten: © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, SRTM | Kartendarstellung: © <a href="http://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>)' | ||||||
|  | 		}).addTo(map); | ||||||
|  | 		break;	 | ||||||
| 	case 'osmde': // add OpenStreetMap.DE tile layer, default | 	case 'osmde': // add OpenStreetMap.DE tile layer, default | ||||||
| 		null; | 		null; | ||||||
| 	default: | 	default: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user