Hi Jef, I think you need to destroy the JQuery UI upon closing the dialog and then initiate the JQuery UI dialog upon clicking the marker.
Hope this helps On Wed, Dec 9, 2009 at 7:06 PM, jef <[email protected]> wrote: > Hi > > I would like to replace these prety ugly InfoWindow by jquery UI. > www.agrio.com > > Have you ever seen a tutorial which explain how to tied a dialog to a > Marker. > > I've tried this: > function addMarker(id,latitude, longitude) { > var marker > marker = new GMarker(new GLatLng(latitude, longitude)); > GEvent.addListener(marker, 'click', > function() { > $('#foo').dialog({title:"titre"}) > > } > ); > markers.push(marker); > } > > The dialog only appears for the first marker click. > > Thank you for your help. > > -- > > 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. > > > -- harlow -- 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.
