Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataFilterExtension (category) and PathStyleExtension not working together #9253

Open
1 of 7 tasks
AdityaC-Lepton opened this issue Nov 17, 2024 · 0 comments
Open
1 of 7 tasks
Labels

Comments

@AdityaC-Lepton
Copy link

AdityaC-Lepton commented Nov 17, 2024

Description

When added PathStyleExtension with DataFilterExtension filtering with category the line is not visible however it works when I use range filter

Before adding DataFilterExtension
image

image

After adding DataFilterExtension

image

image

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

Line should be visible using both extension

Steps to Reproduce

return new GeoJsonLayer({
id: 'cable',
useDevicePixels: app.useDevicePixelsInVectorLayer,
data: app.filterDataWithProvinceGeom(app.cableFilteredGeoJson, "FeatureCollection","CBL"), //app.cableFilteredGeoJson,
lineWidthScale: 1,
lineWidthUnits: 'pixels',
lineWidthMinPixels: 1,
lineWidthMaxPixels: 10,
getLineColor: f => app.GetLineColor(f),
getLineWidth: feature => app.GetLineWidth(feature),
opacity: styleObj[0].LayerStyle[0].opacity,
autoHighlight: true,
pickable: true,
visible: app.isVectorLayerActive("CBL"),
getFilterCategory: f => f.properties.network_status,
filterCategories: app.GetfilterCategories("CBL"),
extensions: [new PathStyleExtension({ highPrecisionDash: false, dash: true, dashJustified: true }), new DataFilterExtension({ categorySize: 1 })],
getDashArray: f => (app.GetDashArray(f.properties.network_status)),
collisionEnabled: app.IsCollisionEnabled,

Environment

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant