mirror of
				https://github.com/KevinMidboe/nova-map-fields.git
				synced 2025-10-29 17:50:27 +00:00 
			
		
		
		
	Create navigation route w/o l-control
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/js/field.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/js/field.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -7,21 +7,17 @@ | |||||||
|       @input="triggerChange" |       @input="triggerChange" | ||||||
|     /> |     /> | ||||||
|  |  | ||||||
|     <l-control position="topleft" v-if="edit" class="block my-2"> |     <div v-if="edit" class="flex block my-2"> | ||||||
|       <div class="flex"> |       <div v-for="option in routeTypes" class="ml-2"> | ||||||
| 	<div v-for="option in routeTypes" class="ml-2"> |         <input type="radio" :id="option.value" :value="option.value" v-model="selectedRouteType"> | ||||||
|           <input type="radio" :id="option.value" :value="option.value" v-model="selectedRouteType"> |         <label :for="option.value">{{ option.name }}</label> | ||||||
|           <label :for="option.value">{{ option.name }}</label> |  | ||||||
| 	</div> |  | ||||||
|       </div> |       </div> | ||||||
|     </l-control> |     </div> | ||||||
|  |  | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
| import { LControl } from 'vue2-leaflet'; |  | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   props: { |   props: { | ||||||
|     value: { |     value: { | ||||||
| @@ -93,9 +89,5 @@ export default { | |||||||
|       this.$emit("input", navigationRouteCoords); |       this.$emit("input", navigationRouteCoords); | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|   components: { |  | ||||||
|     LControl |  | ||||||
|   } |  | ||||||
| }; | }; | ||||||
| </script> | </script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user