forked from MapComplete/MapComplete
		
	Add license info, fix non-updating values after reopening popups
This commit is contained in:
		
							parent
							
								
									576fd8ff40
								
							
						
					
					
						commit
						7b47af8978
					
				
					 11 changed files with 71 additions and 42 deletions
				
			
		|  | @ -64,7 +64,7 @@ export default class SimpleMetaTagger { | |||
|             SimpleMetaTagger.GetCountryCodeFor(lon, lat, (countries) => { | ||||
|                 try { | ||||
|                     feature.properties["_country"] = countries[0].trim().toLowerCase(); | ||||
|                     const tagsSource = State.state.allElements.addOrGetElement(feature); | ||||
|                     const tagsSource = State.state.allElements.getEventSourceById(feature.properties.id); | ||||
|                     tagsSource.ping(); | ||||
|                 } catch (e) { | ||||
|                     console.warn(e) | ||||
|  | @ -77,7 +77,7 @@ export default class SimpleMetaTagger { | |||
|         "If 'opening_hours' is present, it will add the current state of the feature (being 'yes' or 'no')", | ||||
|         (feature => { | ||||
| 
 | ||||
|             const tagsSource = State.state.allElements.addOrGetElement(feature); | ||||
|             const tagsSource = State.state.allElements.getEventSourceById(feature.properties.id); | ||||
|             tagsSource.addCallbackAndRun(tags => { | ||||
|                 if (tags.opening_hours === undefined || tags._country === undefined) { | ||||
|                     return; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue