Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhancements for splayed cluster manipulation #27

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from

Conversation

tobesucht
Copy link

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

…mount. Modify the DisplacedMarker´s marker once a ModifyMarkerEvent is fired.
@tobesucht tobesucht marked this pull request as ready for review February 28, 2024 08:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant