From 6038f0d6ad7dcacd61e7a8b6cc904a9c65dc4089 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 13 May 2024 17:14:16 +0200 Subject: [PATCH] Include all countries in _ country --- src/Logic/SimpleMetaTagger.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Logic/SimpleMetaTagger.ts b/src/Logic/SimpleMetaTagger.ts index 15d358668..41399a239 100644 --- a/src/Logic/SimpleMetaTagger.ts +++ b/src/Logic/SimpleMetaTagger.ts @@ -119,7 +119,7 @@ class CountryTagger extends SimpleMetaTagger { constructor() { super({ keys: ["_country"], - doc: "The country code of the property (with latlon2country)", + doc: "The country codes of the of the country/countries that the feature is located in (with latlon2country). Might contain _multiple_ countries, separated by a `;`", includesDates: false, }) } @@ -138,7 +138,7 @@ class CountryTagger extends SimpleMetaTagger { return } const oldCountry = feature.properties["_country"] - const newCountry = countries[0].trim().toLowerCase() + const newCountry = countries.join(";").trim().toLowerCase() if (oldCountry !== newCountry) { if (typeof window === undefined) { tagsSource.data["_country"] = newCountry @@ -150,7 +150,7 @@ class CountryTagger extends SimpleMetaTagger { /** * What is this weird construction? * - * For a theme with a hundreds of items (e.g. shops) + * For a theme with hundreds of items (e.g. shops) * the country for all those shops will probably arrive at the same time. * * This means that all those stores will be pinged around the same time.