Commit 3fc9239c authored by Sebastian's avatar Sebastian

Fixed GEOP-350 ( 1/2 )

parent 4a3bae8d
......@@ -53,7 +53,7 @@
-->
</form>
<div *ngIf="hasResults" class="search-results-wrap">
<div *ngIf="searched" class="search-results-wrap">
<div class="" *ngIf="searched && this.osmNodes.length == 0">
<div class="searchbox-heading">Orte des Guten Lebens</div>
<div class="searchbox-text-only">
......
......@@ -186,6 +186,7 @@ export class SearchComponent implements OnInit {
}
}
if(result['geoElements']){
for(let data of result['geoElements']){
let node = OsmNodeFactory.create(data);
this.nodeService.fillBliDimensions(node);
......@@ -217,6 +218,11 @@ export class SearchComponent implements OnInit {
}
}
this.hasResults = (this.osmNodes.length > 0 || this.nominatimNodes.length > 0 || this.dataGroups.length > 0);
this.logger.debug("searched: "+(this.searched?"yes":"no"));
this.logger.debug("hasResults: "+(this.hasResults?"yes":"no"));
this.logger.debug("osmNodes: "+this.osmNodes.length);
this.logger.debug("dataGroups: "+this.dataGroups.length);
this.logger.debug("nominatimNodes: "+this.nominatimNodes.length);
}
edit(node: OsmNode){
......@@ -226,7 +232,9 @@ export class SearchComponent implements OnInit {
parseNominatimResult(response){
this.logger.debug("Parsing Nominatim results.");
this.nominatimNodes.length = 0;
console.log(response.length + " nominatim results.");
for(let item of response){
let nodeData={
osmId:item['osm_id'],
......
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