Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showPolygon not working #219

Closed
Abolfazl-MI opened this issue Jul 17, 2024 · 2 comments
Closed

showPolygon not working #219

Abolfazl-MI opened this issue Jul 17, 2024 · 2 comments
Labels

Comments

@Abolfazl-MI
Copy link

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)

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 17, 2024
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant