diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index 503d06c6..bf6c50c7 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -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, }) } diff --git a/umap/static/umap/js/modules/importers/overpass.js b/umap/static/umap/js/modules/importers/overpass.js index 0a0ee59a..2f14cde7 100644 --- a/umap/static/umap/js/modules/importers/overpass.js +++ b/umap/static/umap/js/modules/importers/overpass.js @@ -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