forked from MapComplete/MapComplete
		
	Fix split way action, add decent tests for them (fix #171), enable split road on cyclestreets theme
This commit is contained in:
		
							parent
							
								
									affe8237dc
								
							
						
					
					
						commit
						a2aa26aafc
					
				
					 12 changed files with 1908 additions and 60 deletions
				
			
		|  | @ -90,14 +90,8 @@ export default class LayoutConfig { | |||
|         this.startZoom = json.startZoom; | ||||
|         this.startLat = json.startLat; | ||||
|         this.startLon = json.startLon; | ||||
|         if(json.widenFactor < 0.02){ | ||||
|             if(official){ | ||||
|                 throw "Widenfactor too small" | ||||
|             }else{ | ||||
|                 // Unofficial themes get away with this
 | ||||
|                 console.warn("Detected a very small widenfactor for theme ", this.id ,", bumping this above 1.") | ||||
|                 json.widenFactor = json.widenFactor + 1 | ||||
|             } | ||||
|         if(json.widenFactor <= 0){ | ||||
|                 throw "Widenfactor too small, shoud be > 0" | ||||
|         } | ||||
|         if(json.widenFactor > 20){ | ||||
|             throw "Widenfactor is very big, use a value between 1 and 5 (current value is "+json.widenFactor+") at "+context | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue