mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
wip: prettier
This commit is contained in:
parent
c3ae3b5770
commit
b7dd771a7f
2 changed files with 8 additions and 3 deletions
|
@ -118,7 +118,10 @@ export default class Importer {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
@ -197,7 +200,7 @@ export default class Importer {
|
|||
value: '',
|
||||
textContent: translate('Import in a new layer'),
|
||||
parent: layerSelect,
|
||||
selected: true
|
||||
selected: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,9 @@ export class Importer {
|
|||
container.innerHTML = TEMPLATE
|
||||
this.autocomplete = new Autocomplete(container.querySelector('#area'), {
|
||||
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) => {
|
||||
boundary = choice.item.value
|
||||
boundaryName = choice.item.label
|
||||
|
|
Loading…
Reference in a new issue