Skip to content

Commit c52770a

Browse files
reference latest mapbox-sdk package with v6 api support
1 parent 885c3ad commit c52770a

File tree

3 files changed

+237
-481
lines changed

3 files changed

+237
-481
lines changed

debug/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ var geocoder = new MapboxGeocoder({
8686
}
8787
},
8888
mapboxgl: mapboxgl,
89-
version: 'v5',
89+
reverseGeocode: true,
90+
flipCoordinates: true,
91+
version: 'v6',
9092
});
9193

9294
map.addControl(geocoder)

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,28 @@
4848
"eslint": "^4.18.2",
4949
"husky": "^1.3.1",
5050
"insert-css": "2.0.0",
51-
"json-schema": "^0.4.0",
5251
"lint-staged": "^13.0.3",
5352
"lodash.once": "^4.0.0",
5453
"mapbox-gl": "^0.47.0",
55-
"minimist": "^1.2.6",
5654
"sinon": "^7.2.7",
5755
"smokestack": "^3.6.0",
5856
"tap-color": "^1.1.0",
5957
"tap-status": "^1.0.1",
6058
"tape": "^4.10.1",
61-
"uglify-js": "^2.8.29"
59+
"uglify-js": "^2.8.29",
60+
"minimist": "^1.2.6",
61+
"json-schema": "^0.4.0"
6262
},
6363
"peerDependencies": {
6464
"mapbox-gl": ">= 0.47.0 < 3.0.0"
6565
},
6666
"dependencies": {
67-
"@mapbox/mapbox-sdk": "github:mapbox/mapbox-sdk-js#geocoding-v6-service",
67+
"@mapbox/mapbox-sdk": "^0.15.0",
6868
"events": "^3.3.0",
6969
"lodash.debounce": "^4.0.6",
7070
"nanoid": "^3.1.31",
7171
"subtag": "^0.5.0",
7272
"suggestions": "^1.6.0",
73-
"tap-dot": "^2.0.0",
7473
"xtend": "^4.0.1"
7574
},
7675
"lint-staged": {

0 commit comments

Comments
 (0)