简体   繁体   中英

Ionic 2 custom google map native infowindow

I'm working with ionic 2 app and i'm trying to add a custom info window from an ionic template with native google map plugin but I'm not able to set the content. Seems like ionic 2 does not support the infowindow object. Can I get some info or documentation about this?

In short words, I'm trying to do something like this: https://developers.google.com/maps/documentation/javascript/infowindows?hl=en-419 (open an info window section, html contentString) in ionic 2 with native google map plugin.

Edit: Still trying to find a solution for this where I can use a custom template on infowindow content at @ionic-native/google-maps package, I already have it done with canvas but nothing about HTML.

Please take a look at: https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Marker#base64-encoded-icon

That's a workaround, because seems that it's not supported on version 1.x, but from the v2-beta supports HTML infoWindow, https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1022 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM