Skip to content

getFeatures pagination failure #129

Description

@zanetaylor

When attempting to construct an array of features in a pagination loop, I'm encountering perhaps related problems with the pageSize and pagination params for the getFeatures method.

  1. Using an explicit pageSize param always throws a postMessage console error: Error fetching features: could not convert string to float: ''
  2. Without an explicit pageSize param, the method returns the first 20 features as the expected default, but passing the response's nextPage key to subsequent calls always returns the same / first 20 features instead of the next page.

Activity

  1. tomhicks commented on Jan 26, 2026

    @tomhicks
    Contributor

    Taking a look at this today. Thanks for reporting.

  2. tomhicks commented on Jan 27, 2026

    @tomhicks
    Contributor

    @zanetaylor this should now be resolved by changes on the felt side, no SDK changes necessary. Can you please test this in your app, and let us know if you're still having problems?

    If it's all good, I'll close this issue.

    If you are still seeing problems, it would be helpful if you could provide an example of the exact SDK calls that are not working as expected, along with the map ID that you're operating on so we can test directly.

    Thanks!

  3. zanetaylor commented on Mar 11, 2026

    @zanetaylor
    Author

    Thanks @tomhicks! Sorry for the slow follow up, but I had a chance to test and confirmed that the default pagination seems to work as expected now. However, I'm still seeing the error with an explicit pageSize. The map ID is mE0rS0umSaeQpOIsqaBbfA and the SDK call looks like this:

    felt.getFeatures({ layerId: 'lD8YQjgIRRSPAgsEz6Rs3A', select: ['target_blockid20', 'low_stress', 'high_stress'], pageSize: 50 }))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions