We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ebba1 commit 302cf85Copy full SHA for 302cf85
src/geocoders/mapbox.js
@@ -49,6 +49,11 @@ export var Mapbox = L.Class.extend({
49
for (var j = 0; j < (loc.context || []).length; j++) {
50
var id = loc.context[j].id.split('.')[0];
51
properties[id] = loc.context[j].text;
52
+
53
+ // Get country code when available
54
+ if (loc.context[j].short_code) {
55
+ properties['countryShortCode'] = loc.context[j].short_code
56
+ }
57
}
58
59
results[i] = {
0 commit comments