forked from MapComplete/MapComplete
		
	Adding a community index view with Svelte (WIP)
This commit is contained in:
		
							parent
							
								
									ad13444883
								
							
						
					
					
						commit
						d30ed22673
					
				
					 10 changed files with 487 additions and 101 deletions
				
			
		
							
								
								
									
										14
									
								
								UI/BigComponents/CommunityIndexView.svelte
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								UI/BigComponents/CommunityIndexView.svelte
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| <script lang="ts"> | ||||
|      import {BBox} from "../../Logic/BBox"; | ||||
|      import {Store} from "../../Logic/UIEventSource"; | ||||
|      import Loc from "../../Models/Loc"; | ||||
| 
 | ||||
|      export let bbox: Store<BBox> | ||||
|      export let currentLocation: Store<Loc> | ||||
|      bbox.mapD(bbox => { | ||||
|          if(currentLocation.data.zoom <= 6){ | ||||
|              // only return the global data | ||||
|          } | ||||
|          return bbox.expandToTileBounds(6); | ||||
|      }, [currentLocation]) | ||||
| </script> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue