Commit 8bfb0412 authored by Sebastian's avatar Sebastian

osm-tags: source -> website

parent 07480be5
......@@ -305,8 +305,8 @@
<strong>Homepage</strong>
</label>
<div class="col">
<div *ngIf="nodeService.detailView.getOsmTagValue('contact:websit')">
<span class="form-control-plaintext" id="elementKey" >{{nodeService.detailView.getOsmTagValue('contact:websit')}}</span>
<div *ngIf="nodeService.detailView.getOsmTagValue('website')">
<span class="form-control-plaintext" id="elementKey" >{{nodeService.detailView.getOsmTagValue('website')}}</span>
</div>
<div *ngIf="!nodeService.detailView.getOsmTagValue('contact:websit')">
<span class="form-control-plaintext text-muted" id="elementKey" >Keine Angabe bisher.</span>
......
......@@ -202,6 +202,8 @@ translateTagKey(key:string){
return this.translateAppDataTagKey(key);
}
switch(key){
case 'source':{}
case 'website':{}
case 'contact:website':{
return 'Homepage';
}
......
......@@ -13,11 +13,12 @@ import { Observable } from 'rxjs';
providedIn: 'root'
})
export class OverpassService {
private apiURL = "http://overpass-api.de/api/interpreter";
constructor(
constructor(
private httpClient: HttpClient,
private cache: CacheService,
private logger: LogService,
......@@ -164,7 +165,7 @@ export class OverpassService {
}
let TagWhiteList = [
'name',
'source',
'website',
'addr:country',
'addr:street',
'addr:housenumber',
......
......@@ -61,7 +61,7 @@ export class EditComponent implements OnInit {
addr_postcode:[this.node.getOsmTagValue('addr:postcode')],
email:[this.node.getOsmTagValue('email')],
opening_hours:[this.node.getOsmTagValue('opening_hours')],
src:[this.node.getOsmTagValue('source')],
src:[this.node.getOsmTagValue('website')],
start_date:[this.node.getOsmTagValue('start_date')]
}),
goodplaceForm:this.formBuilder.group({
......@@ -118,7 +118,7 @@ export class EditComponent implements OnInit {
this.node.setOsmTag('addr:city',osmForm.addr_city);
this.node.setOsmTag('addr:housenumber',osmForm.addr_housenumber);
this.node.setOsmTag('addr:postcode',osmForm.addr_postcode);
this.node.setOsmTag('source',osmForm.src);
this.node.setOsmTag('website',osmForm.src);
this.node.setOsmTag('opening_hours',osmForm.opening_hours);
this.node.setOsmTag('start_date',osmForm.start_date);
this.node.setOsmTag('email',osmForm.email);
......
......@@ -57,7 +57,7 @@
<div class="col">
<input type="text" class="form-control" id="src"
formControlName="src"
value="{{node.getOsmTagValue('source')}}" [disabled]="!hasToken()"
value="{{node.getOsmTagValue('website')}}" [disabled]="!hasToken()"
placeholder="Keine Angabe bisher.">
</div>
<div class="col-auto">
......
......@@ -34,7 +34,8 @@ hasToken(){
}
translateTagKey(key:string){
switch(key){
case 'website':
case 'addr:website':
case 'contact:website':{
return 'Homepage';
}
......
......@@ -59,6 +59,8 @@ translateTagKey(key:string){
return this.translateAppDataTagKey(key);
}
switch(key){
case 'website':
case 'source':
case 'contact:website':{
return 'Homepage';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment