We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This props https://vue-google-maps-community-fork.netlify.app/components/cluster.html#styles
Im doing everything by the book and passing it what I understand to be correct configs but it doesnt take effect at all
[ { "textColor": "red", "textSize": 16, "anchorText": [ 1.5, 1 ], "height": 40, "width": 40 }, { "textColor": "red", "textSize": 16, "anchorText": [ 1.5, 1 ], "height": 40, "width": 40 }, { "textColor": "red", "textSize": 16, "anchorText": [ 1.5, 1 ], "height": 40, "width": 40 }, { "textColor": "red", "textSize": 16, "anchorText": [ 1.5, 1 ], "height": 40, "width": 40 }, { "textColor": "red", "textSize": 16, "anchorText": [ 1.5, 1 ], "height": 40, "width": 40 } ]
The text was updated successfully, but these errors were encountered:
Its because the whole documentation is wrong lol. This is the props I see on the cluster.vue component
const props = { algorithm: { type: Object, default: new SuperClusterAlgorithm({}), noBind: true, }, renderer: { type: Object, default: new DefaultRenderer(), noBind: true, }, }
Edit: Sorry I forgot to answer the question... To style it, you need to use the renderer.
const renderer = { render({ count, position }) { return new google.maps.Marker({ label: { text: String(count), color: 'white', fontSize: '10px', }, position, icon: { url: '/icon/map-pointer.webp', scaledSize: { width: 24, height: 24, equals: () => true, }, }, zIndex: Number(google.maps.Marker.MAX_ZINDEX) + count, }); }, };
<GMapCluster :renderer="renderer">
Sorry, something went wrong.
Thank you @IBakeCookies was struggling aswell to style the cluster icons. works perfect
No branches or pull requests
This props
https://vue-google-maps-community-fork.netlify.app/components/cluster.html#styles
Im doing everything by the book and passing it what I understand to be correct configs but it doesnt take effect at all
The text was updated successfully, but these errors were encountered: