Feature Request - Access to MarkerNode Class for Enhanced onClusterTap Functionality
MalauryB opened this issue · 2 comments
I hope this message finds you well. I am currently utilizing the flutter_map_marker_cluster package in my Flutter project and I am thoroughly impressed with its capabilities and performance.
I have encountered a specific requirement where I need to interact with individual markers within a cluster. Specifically, I wish to implement a feature where tapping on a cluster (using onClusterTap) would display a list of the markers contained within that cluster. To achieve this, I found that accessing the MarkerNode class is essential, as it holds the crucial information about the markers.
However, I noticed that the MarkerNode class is not exported in the current version of the package. As a workaround, I had to locally modify the package to export the MarkerNode class, which allowed me to implement the desired functionality.
Would it be possible to consider exporting the MarkerNode class in the official package in the next release? This addition would greatly enhance the package's flexibility and allow developers like myself to create more interactive and detailed map features.
flutter_map_marker_cluster.dart
"library flutter_map_marker_cluster;
export 'src/marker_cluster_layer.dart';
export 'src/marker_cluster_layer_widget.dart';
export 'src/marker_cluster_layer_options.dart';
export 'src/node/marker_node.dart';
export 'package:flutter_map_marker_popup/flutter_map_marker_popup.dart';
export 'src/node/marker_cluster_node.dart';"
I believe this enhancement would be beneficial to many users of the flutter_map_marker_cluster package who are looking to provide a more interactive experience with map clusters.
Thank you for considering this request. I am looking forward to your positive response and am excited about the future enhancements to this already fantastic package.
Best regards,
If I can second that - I would like to animate marker pin when tapping on it, to make it grow. So far I've been unsuccessful with it. Found the similar conclusion as @MalauryB ...
Make a pull request, please.