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() {
|
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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue