Commit b803a27a authored by ncastejon's avatar ncastejon
Browse files

Fix in the map the position.svg asset url

parent cdbebaac
Pipeline #1750 passed with stages
in 5 minutes and 10 seconds
......@@ -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';
......
......@@ -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;
}
}
}
......@@ -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;
// }
}
......@@ -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 : '';
......
Supports Markdown
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