capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

[@capacitor/google-maps] Marker Clusterer Customization

Open RobSchilderr opened this issue 2 years ago • 3 comments

Feature Request

Plugin

@capacitor/google-maps

Description

Enhancement request: Allow for cluster marker customization

Platform(s)

Android and iOS

Preferred Solution

Either enableClustering method to accept an optional parameter for a custom renderer, or a setClustererRenderer method in which parameters can be passed to customize the cluster marker

Additional Context

For the API: CustomMarkerClusteringDemoActivity

RobSchilderr avatar May 22 '23 18:05 RobSchilderr

I know there is this "renderer" for Javascript but not sure if this is what we look for: https://googlemaps.github.io/js-markerclusterer/interfaces/MarkerClustererOptions.html#renderer

I know there is this for iOS: https://developers.google.com/maps/documentation/ios-sdk/utility/marker-clustering#customize-marker-clustering

Hope this helps.

RobSchilderr avatar Jul 12 '23 09:07 RobSchilderr

Seconding this. The ability to customize the cluster icons is very necessary for branded apps.

brodenbrett avatar Jul 26 '23 19:07 brodenbrett

From the Discord server, Dallas said:

Sure! I've looked into this, and it seems like it would be a great feature. Unfortunately, Google has not done us any favors here, and the API is different across all 3 platforms, so from my research, there likely isn't a way for us to be able to provide a single, unified API without spending significant engineering time to solve that problem first. So, because of that very high effort level, it's probably not something we can do in the near-term. 😦

So the solution is to do this with native code in your own project for now, until there is bandwith in the team I guess. Here is a link to the full discussion on Discord if you would like to know more.

RobSchilderr avatar Jul 27 '23 07:07 RobSchilderr