createClusterMarker method

BasicPointMarker createClusterMarker(
  1. List<BasicPointMarker> markers
)

Implementation

BasicPointMarker createClusterMarker(List<BasicPointMarker> markers) {
  ILatLong latLong = markers.first.latLong;
  //print("Creating marker at $latLong for ${markers.length} items");
  return _ClusterMarker(
    center: latLong,
    radius: 18,
    strokeWidth: 3,
    strokeColor: 0xffffffff,
    fillColor: 0xaaff0000,
    displayModel: displayModel,
  )..addCaption(
      caption: "${markers.length}",
      displayModel: displayModel,
      fontSize: 18,
      fillColor: 0xffffffff,
    );
}