Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
b803a27a
Commit
b803a27a
authored
Aug 13, 2019
by
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
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/map/components/map.component.ts
View file @
b803a27a
...
...
@@ -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
'
;
...
...
src/app/map/components/search-address/search-address.component.scss
View file @
b803a27a
...
...
@@ -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
;
}
}
}
src/app/map/components/search-address/search-address.component.ts
View file @
b803a27a
...
...
@@ -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;
// }
}
src/app/map/services/geocoder.service.ts
View file @
b803a27a
...
...
@@ -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
:
''
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment