You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello greate developer, Im new to your package and I want to show circle around the cluster, i have configured also the polygon style but now showing me this is my code
MarkerClusterLayerWidget(
options: MarkerClusterLayerOptions(
centerMarkerOnClick: true,
polygonOptions: PolygonOptions(
color: Colors.blueAccent,borderColor: Colors.white,
borderStrokeWidth: 1,
),
maxClusterRadius: 80,
size: const Size(40, 40),
showPolygon: true,
alignment: Alignment.center,
padding: const EdgeInsets.all(50),
maxZoom: 15,
markers: state.entities
.map((e) => Marker(
point: LatLng(e.lat!, e.lng!),
child: Icon(Icons.home)))
.toList(),
builder: (context, markers) {
return Container(
width: 40, // Adjust size as needed
height: 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: context.theme.colorScheme.primary,
),
child: Center(
child: Text(
markers.length.toString(),
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
),
);
},
),
),
```
i want to achive this ui using plygon am i right?. is it possible
![image](https://github.com/user-attachments/assets/628d321a-f30e-4aaa-9c9a-22c01a38223e)
The text was updated successfully, but these errors were encountered:
Hello greate developer, Im new to your package and I want to show circle around the cluster, i have configured also the polygon style but now showing me this is my code
The text was updated successfully, but these errors were encountered: