From b803a27a944d8b751028ae4c7312488cb743dbee Mon Sep 17 00:00:00 2001 From: ncastejon <castejon.nicolas@gmail.com> Date: Tue, 13 Aug 2019 11:15:56 +0200 Subject: [PATCH] Fix in the map the position.svg asset url --- src/app/map/components/map.component.ts | 3 +-- .../search-address/search-address.component.scss | 7 ++++++- .../components/search-address/search-address.component.ts | 6 ------ src/app/map/services/geocoder.service.ts | 1 - 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/map/components/map.component.ts b/src/app/map/components/map.component.ts index f1ebfb52..153bf587 100644 --- a/src/app/map/components/map.component.ts +++ b/src/app/map/components/map.component.ts @@ -118,7 +118,6 @@ export class MapComponent implements OnInit, OnDestroy { } searchAdress(value: string) { - console.log(value); // Subscribe to search location input const item = this.searchLocationResult.find(e => e.caption === value); if (item) { @@ -149,7 +148,7 @@ export class MapComponent implements OnInit, OnDestroy { // create a DOM element for the marker const el = document.createElement('div'); el.className = 'marker'; - el.style.backgroundImage = 'url(/assets/img/position.svg)'; + el.style.backgroundImage = 'url(./assets/img/position.svg)'; el.style.backgroundRepeat = 'no-repeat'; el.style.backgroundPosition = 'center'; el.style.width = '50px'; diff --git a/src/app/map/components/search-address/search-address.component.scss b/src/app/map/components/search-address/search-address.component.scss index 7592f3c6..8a34eccf 100644 --- a/src/app/map/components/search-address/search-address.component.scss +++ b/src/app/map/components/search-address/search-address.component.scss @@ -3,6 +3,7 @@ .research-input { width: 100%; + height: 100%; min-width: 20rem; input { font-size: 0.875rem; @@ -74,6 +75,10 @@ input { text-overflow: ellipsis; box-shadow: none; - border: 1px solid $grey-super-light-color; + border: 1px solid #dbdbdb; + &:active, + &:hover { + border: 1px solid $grey-super-light-color; + } } } diff --git a/src/app/map/components/search-address/search-address.component.ts b/src/app/map/components/search-address/search-address.component.ts index b4f1d931..f03e00c9 100644 --- a/src/app/map/components/search-address/search-address.component.ts +++ b/src/app/map/components/search-address/search-address.component.ts @@ -101,8 +101,6 @@ export class SearchAddressComponent implements OnInit { } requestAutocomplete() { - // tslint:disable-next-line:max-line-length - console.log(this.searchValue); this.searchAddress.emit(this.searchValue); } @@ -111,8 +109,4 @@ export class SearchAddressComponent implements OnInit { this.searchChanged(); this.clearAddress.emit(); } - - // get isLoading() { - // return this._datasetResearchService.isLoading; - // } } diff --git a/src/app/map/services/geocoder.service.ts b/src/app/map/services/geocoder.service.ts index cbaf2481..21e8bba4 100644 --- a/src/app/map/services/geocoder.service.ts +++ b/src/app/map/services/geocoder.service.ts @@ -18,7 +18,6 @@ export class GeocoderService { `${this.geoServiceUrl}/api?q=${term}&lat=45.75&lon=4.85&lang=fr&limit=3&osm_tag=:!construction&osm_tag=:!bus_stop`).pipe( map((res) => { return res.features.map((item) => { - console.log(item) // const stop = item.properties.osm_value === 'bus_stop' ? 'ArrĂȘt ' : ''; const housenumber = item.properties.housenumber ? item.properties.housenumber : null; const name = item.properties.name ? item.properties.name : ''; -- GitLab