Component | TopoJSON: Major TopoJSON Map updates#750
Open
Conversation
- Add clustered colorMap support to display point data as pie/donut charts with multiple colored segments - Implement cluster expansion with automatic point spreading using pack layout and white background circle - Enable click-outside collapse with single-click response on background, features, and cluster elements - Restore original donut chart visualization when collapsing expanded clusters across zoom/pan operations - Add example demonstrating clustered color map
…mation in TopoJSON map
…e doesn't re-cluster, adding expandCluster to zoomToLocation function
…electionRing for highlight
…if area data is not present
…uster points in TopoJSONMap - Fix expanded cluster point color is always dark, it should be same as single point
Collaborator
Author
|
cc @rokotyan |
…will center the single point
rokotyan
reviewed
Mar 3, 2026
Contributor
rokotyan
left a comment
There was a problem hiding this comment.
I was only able to take a quick look, and I personally don't find this code "mergeable." There are so many as any usages, which is a no-go in my opinion.
| : getNumber(d.properties as any, config.pointRadius, 0) / currentZoomLevel | ||
| return radius | ||
| }) | ||
| .attr('dy', d => { |
Contributor
There was a problem hiding this comment.
Is there a reason to use dy instead of dominant-baseline?
Collaborator
Author
There was a problem hiding this comment.
I believe leaflet uses dy here, keeping it the same for consistency.
5b71904 to
4e8afd3
Compare
Collaborator
Author
|
Added transition to area label Screen.Recording.2026-03-09.at.2.32.58.PM.mov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR covers the features added to Topojson:
Screen.Recording.2026-03-02.at.1.40.17.PM.mov
Previously: Single point case
Screen.Recording.2026-03-02.at.3.16.34.PM.mov