I'm developing a facebook app thath use google maps.

I want to insert a profile-pic inside a infowindow on a marker.

I'm using this code that doesn't work as well...

can anybody help me please?

I'm newer with facebook apps and google maps, so be patient with me.

I've took a look around this forum but I didn't found anything yet.
Thank in advance.


function createMarker(point, description, color) {
                                var blueIcon = new GIcon(G_DEFAULT_ICON);
                                blueIcon.iconSize = new GSize(35, 34);
                                blueIcon.image = 
"http://www.google.com/intl/en_us/mapfiles/ms/
micons/blue-dot.png";
                                var greenIcon = new GIcon(G_DEFAULT_ICON);
                                greenIcon.iconSize = new GSize(40, 38);
                                greenIcon.image = 
"http://www.google.com/intl/en_us/mapfiles/ms/
micons/green-dot.png";

                                if (color=="blue") {
                                        IconColor= { icon:blueIcon };
                                }else if (color=="green"){
                                        IconColor= { icon:greenIcon };
                                }else{
                                        IconColor= "";
                                }
                                var marker = new GMarker(point,IconColor);
                                        GEvent.addListener(marker, "click", 
function() {
                                        html='<div 
id="infohtml"><fb:profile-pic uid="123456789"></
fb:profile-pic></div>';
                                                                
marker.openInfoWindowHtml(html);
                                        });
                                  return marker;
                                }
                                map.enableScrollWheelZoom();


                                map.addOverlay(createMarker(new 
GLatLng(48.8667, 2.3333),
"ciao","blueI"));

PS: uid "123456789" is a random user, I use my app's user id

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to