From 2dadf74134f4f5e6a5a97474336545e527243f78 Mon Sep 17 00:00:00 2001 From: Michael Kahn <563401+michaelskahn@users.noreply.github.com> Date: Wed, 21 Oct 2020 20:51:09 -0400 Subject: [PATCH] Exclude options.api from query params (#266) --- src/controls/geocoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/geocoder.js b/src/controls/geocoder.js index 3fecb1c..de593e5 100644 --- a/src/controls/geocoder.js +++ b/src/controls/geocoder.js @@ -93,7 +93,7 @@ export default class Geocoder { this.fire('loading'); const geocodingOptions = this.options - const exclude = ['placeholder', 'zoom', 'flyTo', 'accessToken']; + const exclude = ['placeholder', 'zoom', 'flyTo', 'accessToken', 'api']; const options = Object.keys(this.options).filter(function(key) { return exclude.indexOf(key) === -1; }).map(function(key) {