Skip to content

Commit

Permalink
fix: linting and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Volland committed May 26, 2023
1 parent 75922ed commit 4fdfab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ export function mb2gsExpression<T extends PropertyType>(mbExpression?: MbInput):
return mbExpression as GeoStylerExpression<T> | undefined;
}

const mapBoxExpressionName: ExpressionName = mbExpression[0];
const mapboxExpressionName: ExpressionName = mbExpression[0];
const args: Expression<PropertyType>[] = mbExpression.slice(1);
let func: GeoStylerFunction;

// special handling
switch (mapBoxExpressionName) {
switch (mapboxExpressionName) {
case 'e':
func = {
name: 'exp',
Expand Down Expand Up @@ -269,9 +269,9 @@ export function mb2gsExpression<T extends PropertyType>(mbExpression?: MbInput):
};
break;
default:
const gsFunctionName = invertedFunctionNameMap[mapBoxExpressionName];
const gsFunctionName = invertedFunctionNameMap[mapboxExpressionName];
if (!gsFunctionName) {
throw new Error('Could not translate MapboxExpression: ' + mbExpression);
throw new Error('Could not translate Mapbox Expression: ' + mbExpression);
}
func = {
name: gsFunctionName,
Expand Down
2 changes: 1 addition & 1 deletion src/MapboxStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class MapboxStyleParser implements StyleParser<Omit<MbStyle, 'sources'>>
/**
* Object of unsupported properties.
*/
unsupportedProperties ={
unsupportedProperties = {
Symbolizer: {
FillSymbolizer: {
fillOpacity: {
Expand Down

0 comments on commit 4fdfab2

Please sign in to comment.