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

no icon generator #24

Closed
ravindramukund opened this issue Jul 28, 2016 · 5 comments
Closed

no icon generator #24

ravindramukund opened this issue Jul 28, 2016 · 5 comments

Comments

@ravindramukund
Copy link

there is no icon generator for ios, but it exists for android which is a huge help.Please include an icon generator for ios

@mountainvat
Copy link
Contributor

There is an icon generator protocol and a default implementation GMUDefaultClusterIconGenerator. You can see if the default implementation help with your use cases or provide a custom implementation.

The icon generator is passed into the GMUDefaultClusterRenderer initWithMapView method.

Hope it helps.

@NeoElit
Copy link

NeoElit commented Jul 29, 2016

@mountainvat yeah, but it would be an interesting helper function if there is an equivalent of IconGenerator for single markers with same features and shape.

@mountainvat
Copy link
Contributor

FYI: if you wanted to customize single markers please take a look at this issue thread:
#21

@NeoElit
Copy link

NeoElit commented Aug 2, 2016

@mountainvat yeah, but still we need to provide the custom UIImage rt? I was looking for some helper which will create the UIImage from the text provided as in the map utils for android.

@mountainvat
Copy link
Contributor

Yes you would have to generate the image yourself. What you can do is look at the GMUDefaultClusterIconGenerator to see how images are generated from text?

For better performance, please remember to cache the generated image(s) if there are only a handful of them.

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

No branches or pull requests

3 participants