You will need to create a DOM structure for the Info Window content,
here's a small piece of it:

var div = document.createElement("div");
var a = document.createElement("a");
a.innerHTML = "Edit Marker";
div.appendChild(a);
google.maps.event.addDomListener(a, "click", function()
{ associatedMarker.setDraggable(true); });
MyInfoWindow.setContent(div);

By creating a DOM and attaching listeners, you can do all the things
you mentioned.

Chad Killingsworth

On Nov 10, 6:22 am, Socrates Vidros <[email protected]> wrote:
> I d like to create an infoWindow with 2 buttons for every marker in my
> map. My markers cannot be dragged as a default. The first button, edit
> marker, will make the selected marker draggable so the user can edit
> the markers position. The second button, delete marker, will delete the
> selected marker and the infobox as well.
>
> Screenshot:
>
> https://lh3.googleusercontent.com/_ItzjI00e-0o/TNnFViEt5sI/AAAAAAAAAA...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to