-
Notifications
You must be signed in to change notification settings - Fork 64
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
Custom icon marker in SVG #15
Comments
Hey @Snowbases, glad you find it useful. The package uses UIImage on swift https://github.com/hemangsk/capacitor-googlemaps-native/blob/master/ios/Plugin/Plugin.swift#L79 , therefore only .jpg and .png files can be used for custom markers currently. |
Looking great @Snowbases! Thanks for your work, it looks like a neat workaround. /me looks forward to an MR from @Snowbases 😄 |
hi, I've been trying to use a png as marker's icon, but it's not working. I'd like to know if there exists any example. I'd really appreciate your help. |
I am busy working on adding image (url) support to Android, will send a PR when ready |
Ok so I got this working but it drastically slows down the load time of the map... so maybe it's not a great idea. :\ Looks like using SVG / reference is better for Android compared to iOS |
Thank's @gbrits , I appreciate your quick response. |
even png not working or me
|
@ChiKaLiO To point you in the right direction, in this package they implemented it already. You could specifically take a look at |
any word on this? |
Hi, this plugin looks great for Capacitor, but I wonder if we can add custom icon in marker as an SVG in the map? because the quality won't be losing than PNG
The text was updated successfully, but these errors were encountered: