Skip to content

Commit

Permalink
bump mapbox gl js to v3, replace Streets with Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhong committed Jan 31, 2024
1 parent 68ee0d2 commit 7d9ff41
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
* Uses mapbox-gj.js for map rendering, including the new globe projection.
* Adds mapbox-gl-draw with a rectangle mode and a custom edit UI/UX to be similar to the edit button in leaflet-draw
* Adds a projection toggle UI (visible at zoom 6 and below) for switching between globe (default) and mercator
* Replaces the existing layer switch with more mapbox core style options (Streets, Satellite Streets, Outdoors, Light, Dark)
* Replaces the existing layer switch with more mapbox core style options (Standard, Satellite Streets, Outdoors, Light, Dark)
* Formats geojson on paste (useful when pasting single-line geojson from a scripted output somewhere, if the pasted string is valid JSON it will be automatically pretty-printed in the editor)

## 2022-10-05
Expand Down
60 changes: 37 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"geojson-random": "0.1.0",
"geojson2dsv": "0.1.0",
"lodash": "^4.17.21",
"mapbox-gl": "2.13.0",
"mapbox-gl": "3.1.2",
"numeral": "^2.0.6",
"osmtogeojson": "3.0.0-beta.5",
"polytogeojson": "0.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
DEFAULT_PROJECTION: 'globe',
DEFAULT_STYLE: 'Streets',
DEFAULT_STYLE: 'Standard',
DEFAULT_DARK_FEATURE_COLOR: '#555',
DEFAULT_LIGHT_FEATURE_COLOR: '#e8e8e8',
DEFAULT_SATELLITE_FEATURE_COLOR: '#00f900'
Expand Down
4 changes: 2 additions & 2 deletions src/ui/map/styles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = [
{
title: 'Streets',
style: 'mapbox://styles/mapbox/streets-v12'
title: 'Standard',
style: 'mapbox://styles/mapbox/standard'
},
{
title: 'Satellite Streets',
Expand Down

0 comments on commit 7d9ff41

Please sign in to comment.