RadiusMarkerClusterer

Radius-based Clustering algorithm: create a cluster using the first point from the cloned list. All points that are found within the neighborhood are added to this cluster. Then all the neighbors and the main point are removed from the list of points. It continues until the list is empty. Largely inspired from GridMarkerClusterer by M.Kergall

Author

sidorovroman92@gmail.com

Constructors

Link copied to clipboard
constructor(ctx: Context)

Properties

Link copied to clipboard
open var mAnchorU: Float
cluster icon anchor
Link copied to clipboard
open var mAnchorV: Float
Link copied to clipboard
anchor point to draw the number of markers inside the cluster icon
Link copied to clipboard

Functions

Link copied to clipboard
open fun buildClusterMarker(cluster: StaticCluster, mapView: MapView): MarkerWithLabel
Build the marker for a cluster.
Link copied to clipboard
open fun clusterer(mapView: MapView): ArrayList<StaticCluster>
Radius-Based clustering algorithm
Link copied to clipboard
open fun getTextPaint(): Paint
If you want to change the default text paint (color, size, font)
Link copied to clipboard
open fun onSingleTapConfirmed(event: MotionEvent, mapView: MapView): Boolean
Link copied to clipboard
open fun renderer(clusters: ArrayList<StaticCluster>, canvas: Canvas, mapView: MapView)
build clusters markers to be used at next draw
Link copied to clipboard
open fun setAnimation(animate: Boolean)
Link copied to clipboard
Set max zoom level with clustering.
Link copied to clipboard
open fun setRadius(radius: Int)
Set the radius of clustering in pixels.
Link copied to clipboard
open fun zoomOnCluster(mapView: MapView, cluster: StaticCluster)