Skip to content

Commit

Permalink
Fix inconsistent path layer id in GeoJSONLayer (visgl#5855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Jun 8, 2021
1 parent 54be9fa commit aa22186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/layers/geojson-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ The GeoJsonLayer renders the following sublayers:

* `polygons-fill` - a [SolidPolygonLayer](/docs/api-reference/layers/solid-polygon-layer.md) rendering all the `Polygon` and `MultiPolygon` features.
* `polygons-stroke` - a [PathLayer](/docs/api-reference/layers/path-layer.md) rendering the outline of all the `Polygon` and `MultiPolygon` features. Only rendered if `stroked: true` and `extruded: false`.
* `linestrings` - a [PathLayer](/docs/api-reference/layers/path-layer.md) rendering all the `LineString` and `MultiLineString` features.
* `line-strings` - a [PathLayer](/docs/api-reference/layers/path-layer.md) rendering all the `LineString` and `MultiLineString` features.
* `points` - a [ScatterplotLayer](/docs/api-reference/layers/scatterplot-layer.md) rendering all the `Point` and `MultiPoint` features.


Expand Down
2 changes: 1 addition & 1 deletion modules/layers/src/geojson-layer/geojson-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default class GeoJsonLayer extends CompositeLayer {
);

const pathLayer =
this.shouldRenderSubLayer('linestrings', layerProps.lines.data) &&
this.shouldRenderSubLayer('line-strings', layerProps.lines.data) &&
new LineStringsLayer(
{
widthUnits: lineWidthUnits,
Expand Down

0 comments on commit aa22186

Please sign in to comment.