Skip to content

Commit c7635d4

Browse files
author
Majid
committed
feat(#123): fixed-fmt
1 parent 0b92914 commit c7635d4

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/icon-layer.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ import { validateAccessors } from "./validate.js";
2929
/** All properties supported by GeoArrowScatterplotLayer */
3030
export type GeoArrowIconLayerProps = Omit<
3131
IconLayerProps<arrow.Table>,
32-
"data" | "getPosition" | "getRadius" | "getFillColor" | "getLineColor" | "iconAtlas" | "iconMapping"
32+
| "data"
33+
| "getPosition"
34+
| "getRadius"
35+
| "getFillColor"
36+
| "getLineColor"
37+
| "iconAtlas"
38+
| "iconMapping"
3339
> &
3440
_GeoArrowIconLayerPropsProps &
3541
CompositeLayerProps;
@@ -115,10 +121,7 @@ export class GeoArrowIconLayer<
115121
return this._renderLayersPoint(geometryColumn);
116122
}
117123

118-
throw new Error(
119-
"getPosition should pass in an arrow Vector of Point",
120-
);
121-
124+
throw new Error("getPosition should pass in an arrow Vector of Point");
122125
} else {
123126
const pointVector = getGeometryVector(table, EXTENSION_NAME.POINT);
124127
if (pointVector !== null) {
@@ -188,12 +191,15 @@ export class GeoArrowIconLayer<
188191
});
189192
}
190193

191-
192194
// @ts-expect-error iconAtlas is an async prop
193-
const iconAtlas=this.props.iconAtlasConfig
195+
const iconAtlas = this.props.iconAtlasConfig;
194196
// @ts-expect-error iconMapping is an async prop
195-
const iconMapping=this.props.iconMapping
196-
const props_={...this.getSubLayerProps(props), iconAtlas, iconMapping }
197+
const iconMapping = this.props.iconMapping;
198+
const props_ = {
199+
...this.getSubLayerProps(props),
200+
iconAtlas,
201+
iconMapping,
202+
};
197203
const layer = new IconLayer(props_);
198204
layers.push(layer);
199205
}

0 commit comments

Comments
 (0)