diff --git a/app/components/map.gjs b/app/components/map.gjs index dc0a3b0..557ea33 100644 --- a/app/components/map.gjs +++ b/app/components/map.gjs @@ -1214,18 +1214,22 @@ export default class MapComponent extends Component { clickedSearchResult = searchResultFeature.get('originalPlace'); } else { for (const feature of features) { - const sourceLayer = feature.get?.('mvt:layer') || feature.get?.('layer'); + const sourceLayer = + feature.get?.('mvt:layer') || feature.get?.('layer'); const featureName = feature.get?.('name'); const featureId = feature.getId?.(); const { decoded, reason } = this.decodeVectorTileOsmFeature(feature); if (decoded) { - console.debug('Decoded vector tile feature to explicit OSM place:', { - sourceLayer, - featureName, - featureId, - decoded, - }); + console.debug( + 'Decoded vector tile feature to explicit OSM place:', + { + sourceLayer, + featureName, + featureId, + decoded, + } + ); clickedTileOsmFeature = decoded; break; } diff --git a/tests/unit/components/map-test.js b/tests/unit/components/map-test.js index 612e9ab..f023b8c 100644 --- a/tests/unit/components/map-test.js +++ b/tests/unit/components/map-test.js @@ -35,10 +35,13 @@ module('Unit | Component | map', function () { }, }; - assert.deepEqual(MapComponent.prototype.decodeVectorTileOsmFeature(feature), { - decoded: null, - reason: 'unsupported source layer: transportation', - }); + assert.deepEqual( + MapComponent.prototype.decodeVectorTileOsmFeature(feature), + { + decoded: null, + reason: 'unsupported source layer: transportation', + } + ); }); test('it ignores unsupported or invalid vector tile ids', function (assert) { @@ -52,9 +55,12 @@ module('Unit | Component | map', function () { }, }; - assert.deepEqual(MapComponent.prototype.decodeVectorTileOsmFeature(feature), { - decoded: null, - reason: 'feature id suffix 0 is not an OSM type', - }); + assert.deepEqual( + MapComponent.prototype.decodeVectorTileOsmFeature(feature), + { + decoded: null, + reason: 'feature id suffix 0 is not an OSM type', + } + ); }); });