Skip to content

Commit

Permalink
Merge pull request #877 from mapbox/handle-streets-storage
Browse files Browse the repository at this point in the history
handle streets style in storage
  • Loading branch information
chriswhong authored Jan 31, 2024
2 parents 2098fb3 + 18c41f2 commit 0daeefe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ module.exports = function (context, readonly) {

const projection = context.storage.get('projection') || DEFAULT_PROJECTION;
const activeStyle = context.storage.get('style') || DEFAULT_STYLE;

// handle previous users who had Streets selected
if (activeStyle === 'Streets') {
activeStyle === 'Standard';
}

const { style } = styles.find((d) => d.title === activeStyle);

context.map = new mapboxgl.Map({
Expand Down

0 comments on commit 0daeefe

Please sign in to comment.