ClusterLayer constructor

const ClusterLayer({
  1. Key? key,
  2. TextStyle clusterTextStyle = const TextStyle(color: Colors.white),
  3. bool isShowClusterPointCount = true,
  4. required Map<int, Widget> customClusterWidget,
  5. required List<Marker> markers,
  6. required VietmapController mapController,
  7. bool? ignorePointer,
})

The markers to be placed on the map. use ClusterLayer inside a Stack, that contain VietmapGL and ClusterLayer to work properly VietmapGL.trackCameraPosition must be set to true to work properly

Implementation

const ClusterLayer(
    {super.key,
    this.clusterTextStyle = const TextStyle(color: Colors.white),
    this.isShowClusterPointCount = true,
    required this.customClusterWidget,
    required this.markers,
    required this.mapController,
    this.ignorePointer});