cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

Custom InfoWindow : Customize the border and let transparent background.

Open CardosoGit opened this issue 10 years ago • 8 comments

Is it Possible?

CardosoGit avatar Aug 06 '16 15:08 CardosoGit

I got by reversing the implementations of the methods: getInfoWindow() and getInfoContents. Now, I can customize the infoWindow by using Base64 Encode and Canvas without the default InfoWIndow. image

CardosoGit avatar Aug 07 '16 03:08 CardosoGit

Hi @CardosoGit , could you please share the code implementation of how you achieved the custom infoWindow. I wish to achieve something similar to the image above. Thanks!

cadz7 avatar Aug 11 '16 03:08 cadz7

+1

anymos avatar Aug 16 '16 03:08 anymos

I am also interested in this. I need a custom infowindow.

JeffreyJamesAttenti avatar Aug 16 '16 18:08 JeffreyJamesAttenti

+1

caffic avatar Aug 18 '16 15:08 caffic

It's for android.

Open and modify the file GoogleMaps.java. image

Take the implementation of getInfoWindow () method and put within the getInfoContents () method and vice versa.

Before: image

After: image

Don't forget to remove platform and add again.

CardosoGit avatar Aug 18 '16 21:08 CardosoGit

Now just customize InfoWindow using Base64 Encode: https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Marker#base64-encoded-icon

CardosoGit avatar Aug 18 '16 21:08 CardosoGit

@CardosoGit Is this method no longer usable? I only see CordovaGoogleMaps.java files under plugins/ and platforms/ and neither have the getInfo functions.

slimlime avatar Dec 26 '17 22:12 slimlime