Skip to content

fix(geo-layers) Refactor GeohashLayerProps to extend GeoCellLayerProps#9875

Merged
chrisgervang merged 2 commits intomasterfrom
chr/fix-9854
Dec 1, 2025
Merged

fix(geo-layers) Refactor GeohashLayerProps to extend GeoCellLayerProps#9875
chrisgervang merged 2 commits intomasterfrom
chr/fix-9854

Conversation

@chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented Nov 20, 2025

Closes #9854

Background

The GeohashLayerProps type definition was missing the polygon layer properties. This update follows the same pattern as QuadkeyLayer and S2Layer

  1. Split type definition (lines 13-25):
    • Created _GeohashLayerProps<DataT> for layer-specific properties
    • Updated GeohashLayerProps<DataT> to merge _GeohashLayerProps<DataT> & GeoCellLayerProps<DataT>
    • This now includes all PolygonLayerProps (since GeoCellLayerProps is an alias for PolygonLayerProps)
  2. Updated class definition (line 30): Changed generic parameter from Required<GeohashLayerProps> to Required<_GeohashLayerProps<DataT>>

Change List

  • types

Note

Refactors GeohashLayer typing to compose _GeohashLayerProps with GeoCellLayerProps and updates class generics accordingly.

  • Types:
    • GeohashLayerProps<DataT> now composes _GeohashLayerProps<DataT> & GeoCellLayerProps<DataT>.
    • Introduces _GeohashLayerProps<DataT> for layer-specific props (getGeohash).
    • Updates class generic from Required<GeohashLayerProps> to Required<_GeohashLayerProps<DataT>>.
    • Adds GeoCellLayerProps import and updates doc comments.

Written by Cursor Bugbot for commit a1821c5. This will update automatically on new commits. Configure here.

GeohashLayerProps now extends GeoCellLayerProps for better type composition and reusability. The class definition and type usage have been updated to reflect this change.
@coveralls
Copy link

coveralls commented Nov 20, 2025

Coverage Status

coverage: 91.152%. remained the same
when pulling a1821c5 on chr/fix-9854
into 2813559 on master.

@chrisgervang chrisgervang merged commit 88fdd61 into master Dec 1, 2025
6 checks passed
@chrisgervang chrisgervang deleted the chr/fix-9854 branch December 1, 2025 23:11
felixpalmer pushed a commit that referenced this pull request Dec 3, 2025
GeohashLayerProps now extends GeoCellLayerProps for better type composition and reusability. The class definition and type usage have been updated to reflect this change.
@chrisgervang chrisgervang added this to the v9.2 patch releases milestone Feb 3, 2026
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

Successfully merging this pull request may close these issues.

[Bug] Incorrect typing for GeohashLayerProps

3 participants