@igo2/geo 19.0.1 → 19.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/igo2-geo.mjs
CHANGED
|
@@ -35940,6 +35940,10 @@ class IChercheReverseSearchSource extends SearchSource {
|
|
|
35940
35940
|
const id = [this.getId(), properties.type, properties.code].join('.');
|
|
35941
35941
|
const titleHtml = data.properties.nom;
|
|
35942
35942
|
const subtitleHtml = ' <small> ' + this.getSubtitle(data) + '</small>';
|
|
35943
|
+
let icon = data.icon;
|
|
35944
|
+
if (typeof icon == 'string' && Object.keys(ICHERCHE_ICONS).includes(icon)) {
|
|
35945
|
+
icon = ICHERCHE_ICONS[icon];
|
|
35946
|
+
}
|
|
35943
35947
|
return {
|
|
35944
35948
|
source: this,
|
|
35945
35949
|
data: {
|
|
@@ -35958,7 +35962,7 @@ class IChercheReverseSearchSource extends SearchSource {
|
|
|
35958
35962
|
id,
|
|
35959
35963
|
title: data.properties.nom,
|
|
35960
35964
|
titleHtml: titleHtml + subtitleHtml,
|
|
35961
|
-
icon:
|
|
35965
|
+
icon: icon || 'location_on',
|
|
35962
35966
|
pointerSummaryTitle: this.getSubtitle(data) + ': ' + data.properties.nom
|
|
35963
35967
|
}
|
|
35964
35968
|
};
|