wip: prettier

This commit is contained in:
Yohan Boniface 2024-06-10 11:21:35 +02:00
parent c3ae3b5770
commit b7dd771a7f
2 changed files with 8 additions and 3 deletions

View file

@ -118,7 +118,10 @@ export default class Importer {
} }
get layer() { get layer() {
return this.map.datalayers[this.layerId] || this.map.createDataLayer({name: this.layerName}) return (
this.map.datalayers[this.layerId] ||
this.map.createDataLayer({ name: this.layerName })
)
} }
build() { build() {
@ -197,7 +200,7 @@ export default class Importer {
value: '', value: '',
textContent: translate('Import in a new layer'), textContent: translate('Import in a new layer'),
parent: layerSelect, parent: layerSelect,
selected: true selected: true,
}) })
} }

View file

@ -45,7 +45,9 @@ export class Importer {
container.innerHTML = TEMPLATE container.innerHTML = TEMPLATE
this.autocomplete = new Autocomplete(container.querySelector('#area'), { this.autocomplete = new Autocomplete(container.querySelector('#area'), {
url: 'https://photon.komoot.io/api?q={q}&osm_tag=place', url: 'https://photon.komoot.io/api?q={q}&osm_tag=place',
placeholder: translate('Type area name, or let empty to load data in current map view'), placeholder: translate(
'Type area name, or let empty to load data in current map view'
),
on_select: (choice) => { on_select: (choice) => {
boundary = choice.item.value boundary = choice.item.value
boundaryName = choice.item.label boundaryName = choice.item.label