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

clusteringEnabled:false error #39

Closed
SchemeSonic opened this issue Feb 28, 2024 · 5 comments
Closed

clusteringEnabled:false error #39

SchemeSonic opened this issue Feb 28, 2024 · 5 comments

Comments

@SchemeSonic
Copy link

Hello, first of all thanks for the great library!

I have an issue when I set clusteringEnabled to false;

If clusteringEnabled: true

Screenshot 2024-02-28 at 22 06 22

If clusteringEnabled: false

Screenshot 2024-02-28 at 22 06 28

Here is my constructor:

new FlowmapLayer({
    id: lc.id,
    pickable: true,
    data: flowData as any,
    fadeEnabled: true,
    fadeOpacityEnabled: true,
    opacity: lc.config.opacity ?? 0.8,
    fadeAmount: lc.config.fadeAmount ?? 50,
    darkMode: false,
    clusteringEnabled: lc.config.clusteringEnabled,
    getLocationId: (loc: any) => loc[MODEL_FIELD_MAP[type].location.id],
    getLocationLat: (loc: any) => loc[MODEL_FIELD_MAP[type].location.lat],
    getLocationLon: (loc: any) => loc[MODEL_FIELD_MAP[type].location.lon],
    getLocationName: (loc: any) => loc[MODEL_FIELD_MAP[type].location.name],
    getFlowOriginId: (flow: any) => flow[MODEL_FIELD_MAP[type].flow.origin],
    getFlowDestId: (flow: any) => flow[MODEL_FIELD_MAP[type].flow.dest],
    getFlowMagnitude: (flow: any) => flow[MODEL_FIELD_MAP[type].flow.count],
  });

I cannot understand why there is no flow and also location point has almost 1px when I set clusteringEnabled to false. Can you give me any clue? Thanks!

@ilyabo
Copy link
Member

ilyabo commented Mar 1, 2024

Could you share an example reproducing the issue on e.g. Codesandbox or StackBlitz?

@SchemeSonic
Copy link
Author

Sure, here is the example: stackblitz

@ilyabo
Copy link
Member

ilyabo commented Mar 6, 2024

I published a new version 8.0.2 which addresses the issue. Could you try it out?

@SchemeSonic
Copy link
Author

Thank you so much, it works now.

Screenshot 2024-03-06 at 22 07 38

@ilyabo
Copy link
Member

ilyabo commented Mar 6, 2024 via email

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

No branches or pull requests

2 participants