Skip to content

Commit

Permalink
Fix lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
glughi committed Nov 11, 2024
1 parent 2c21a65 commit c2ef97e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/ModelMixins/GeojsonMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,9 @@ function GeoJsonMixin<T extends AbstractConstructor<BaseType>>(Base: T) {
color: useOutlineColorForLineFeatures
? getOutlineColorValue
: getColorValue,
width: this.terria.configParameters.polylineWidth ?? getOutlineWidthValue
width:
this.terria.configParameters.polylineWidth ??
getOutlineWidthValue
}),
minzoom: 0,
maxzoom: Infinity,
Expand Down
4 changes: 3 additions & 1 deletion lib/Models/Catalog/CatalogItems/KmlCatalogItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ class KmlCatalogItem

// Clamp to ground
if (isDefined(entity.polyline)) {
entity.polyline.width = new ConstantProperty(this.terria.configParameters.polylineWidth ?? 2);
entity.polyline.width = new ConstantProperty(
this.terria.configParameters.polylineWidth ?? 2
);
entity.polyline.clampToGround = new ConstantProperty(true);
entity.polyline.arcType = new ConstantProperty(ArcType.GEODESIC);
} else if (isDefined(entity.billboard)) {
Expand Down

0 comments on commit c2ef97e

Please sign in to comment.