Skip to content

Comments

Enhancements for splayed cluster manipulation#27

Closed
tobesucht wants to merge 23 commits intororystephenson:v5from
tobesucht:master
Closed

Enhancements for splayed cluster manipulation#27
tobesucht wants to merge 23 commits intororystephenson:v5from
tobesucht:master

Conversation

@tobesucht
Copy link
Collaborator

Hi @rorystephenson,

based on the current working state of the v5 branch I have added two modifications which allow the developer to customize the splayed cluster behavior regarding the two following points:

  1. Let the splay radius grow on the basis of the marker amount:
    In the current implementation the markers are overlapping if the splayed cluster contains too many markers.
    The change introduces parameter distanceIncrement for SpreadClusterSplayDelegate which can enlarge the radius by multiplying it with the amount of contained markers.
Screen_recording_20240228_094813.mp4
Screen_recording_20240228_095035.mp4
  1. Modify markers within an splayed cluster:
    In the current implementation markers within a splayed cluster cannot be modified. Only after applying another re-creation the changes for the marker itself will be visible.
    The change introduces a mechnism which will dive into the splayed cluster and replaces the marker of the DisplacedMarker so that the modification is directly visible in the map.
Screen_recording_20240228_094923.mp4

I would be very happy if you could pull those changes to the next version of flutter_map_supercluster

@tobesucht tobesucht marked this pull request as ready for review February 28, 2024 08:53
@rorystephenson
Copy link
Owner

This looks amazing, going to close this one in favour of #30 so we can concentrate on getting that merged.

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.

2 participants