Skip to content

Commit 3d81d65

Browse files
authored
Update mapbox-gl peer dependency version (#298)
1 parent 12e988d commit 3d81d65

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Developing
22

3-
yarn install & yarn start & open http://localhost:9966/example/
3+
npm install & npm start & open http://localhost:9966/
44

55
You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) stored in localstorage. Set it via
66

@@ -10,7 +10,7 @@ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-acces
1010

1111
Tests require an MapboxAccessToken env variable to be set.
1212

13-
export MapboxAccessToken=<YOUR ACCESS TOKEN> && yarn test
13+
export MapboxAccessToken=<YOUR ACCESS TOKEN> && npm test
1414

1515
### Release process
1616

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var directions = new MapboxDirections({
1919

2020
var map = new mapboxgl.Map({
2121
container: 'map',
22-
style: 'mapbox://styles/mapbox/streets-v9'
22+
style: 'mapbox://styles/mapbox/streets-v12'
2323
});
2424

2525
map.addControl(directions, 'top-left');

example/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mapDiv.style = 'position:absolute;top:0;right:0;left:0;bottom:0;';
1515
var map = window.map = new mapboxgl.Map({
1616
hash: true,
1717
container: mapDiv,
18-
style: 'mapbox://styles/mapbox/streets-v9',
18+
style: 'mapbox://styles/mapbox/streets-v12',
1919
center: [-79.4512, 43.6568],
2020
zoom: 13
2121
});

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
},
1919
"peerDependencies": {
20-
"mapbox-gl": "^0.41.0 <2.0.0"
20+
"mapbox-gl": "^1 || ^2"
2121
},
2222
"scripts": {
2323
"prepublish": "npm run build",

0 commit comments

Comments
 (0)