@kiva/kv-components 3.105.1 → 3.105.2
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/CHANGELOG.md +12 -0
- package/data/ne_110m_admin_0_countries.json +1 -0
- package/package.json +2 -2
- package/vue/KvMap.vue +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "3.105.
|
|
3
|
+
"version": "3.105.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"optional": true
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "1eb69b9a5626681003c8bf9569e64e3fc51801c4"
|
|
87
87
|
}
|
package/vue/KvMap.vue
CHANGED
|
@@ -203,7 +203,7 @@ export default {
|
|
|
203
203
|
},
|
|
204
204
|
async mounted() {
|
|
205
205
|
if (this.countriesData) {
|
|
206
|
-
this.countriesBorders = await import('../data/
|
|
206
|
+
this.countriesBorders = await import('../data/ne_110m_admin_0_countries.json');
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
if (!this.mapLibreReady && !this.leafletReady) {
|
|
@@ -505,7 +505,7 @@ export default {
|
|
|
505
505
|
const countriesFeatures = this.countriesBorders.features ?? [];
|
|
506
506
|
|
|
507
507
|
countriesFeatures.forEach((country, index) => {
|
|
508
|
-
const countryData = this.countriesData.find((data) => data.isoCode === country.properties.
|
|
508
|
+
const countryData = this.countriesData.find((data) => data.isoCode === country.properties.iso_a2);
|
|
509
509
|
if (countryData) {
|
|
510
510
|
countriesFeatures[index].lenderLoans = countryData.value;
|
|
511
511
|
countriesFeatures[index].numLoansFundraising = countryData.numLoansFundraising;
|
|
@@ -526,7 +526,7 @@ export default {
|
|
|
526
526
|
const loansString = feature.lenderLoans
|
|
527
527
|
? `${feature.lenderLoans} loan${feature.lenderLoans > 1 ? 's' : ''}`
|
|
528
528
|
: '0 loans';
|
|
529
|
-
const countryString = `${feature.properties.
|
|
529
|
+
const countryString = `${feature.properties.name} <br/> ${loansString}`;
|
|
530
530
|
|
|
531
531
|
layer.bindTooltip(countryString, {
|
|
532
532
|
sticky: true,
|