mirror of
https://github.com/DerTyp7/street-map-typescript.git
synced 2025-10-30 13:17:10 +01:00
now using photon
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import { Component, OnInit, AfterViewInit, ElementRef, ViewChild} from '@angular/core';
|
||||
import { Nominatim } from './interfaces/nominatim';
|
||||
import { NominatimService } from './nominatim.service';
|
||||
import { Photon } from './interfaces/photon';
|
||||
import { PhotonService } from './photon.service';
|
||||
import { Component, AfterViewInit, ElementRef, ViewChild} from '@angular/core';
|
||||
|
||||
|
||||
import { defaults as defaultControls } from 'ol/control';
|
||||
import { fromLonLat } from 'ol/proj';
|
||||
@@ -25,7 +22,7 @@ export class AppComponent implements AfterViewInit {
|
||||
@ViewChild("inputautocompleteList") autocompleteList: ElementRef;
|
||||
|
||||
|
||||
constructor(private nominatimService: NominatimService, private photonService: PhotonService) { }
|
||||
constructor() { }
|
||||
|
||||
updateAutoCompleteList(): void{
|
||||
this.autocompleteList.nativeElement.innerHTML = "Fsd";
|
||||
@@ -39,8 +36,7 @@ export class AppComponent implements AfterViewInit {
|
||||
this.nominatimService.sendQueryRequest(valueFrom)
|
||||
.subscribe((response: Nominatim[]) => console.log(response));*/
|
||||
|
||||
this.photonService.sendQueryRequest(valueFrom)
|
||||
.subscribe((response: Photon[]) => console.log(response));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user