Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Mar 31, 2023
1 parent f66a586 commit d8d7c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/utils/parsePB.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type TileType = 'roadmap' | 'satellite';
export const tileTypes = ['roadmap', 'satellite']
export const tileTypes = ['roadmap', 'satellite'];

function convertType(item: string): [string | TileType | number, boolean] {
item = item.replace(/^\d+/, '');
Expand All @@ -19,7 +19,7 @@ function convertType(item: string): [string | TileType | number, boolean] {
val = parseInt(item);
break;
case 'e': // enum
val = tileTypes[parseInt(item) ?? 0]
val = tileTypes[parseInt(item) ?? 0];
break;
case 'z': // base64 encoded coords
val = atob(item).replace(/[^\d\s\-\.\'\"\°SNWE]/g, '');
Expand Down

0 comments on commit d8d7c4f

Please sign in to comment.