Fix lint errors
CI / Lint (pull_request) Successful in 1m5s
CI / Test (pull_request) Successful in 1m20s
Release Drafter / Update release notes draft (pull_request) Successful in 5s

This commit is contained in:
2026-09-03 14:21:22 -06:00
parent 7e2bce84db
commit 0d92fc9937
2 changed files with 25 additions and 15 deletions
+11 -7
View File
@@ -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;
}
+14 -8
View File
@@ -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',
}
);
});
});