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 396b2c1 commit 6a88b7fCopy full SHA for 6a88b7f
lib/index.js
@@ -692,7 +692,7 @@ MapboxGeocoder.prototype = {
692
693
config = extend(config,
694
this.options.version === 'v6' ? { longitude: coords[0], latitude: coords[1]} : { query: coords },
695
- {limit: 1 }
+ !config.types || config.types.length !== 1 ? {limit: 1 } : {}
696
);
697
} break;
698
case GEOCODE_REQUEST_TYPE.FORWARD: {
0 commit comments