Giving the marker a reference, you can access its sidebar item:

var marker = makeMarker(options);
marker.sidebarButton.button.innerHTML = "New legend";

However when you want to sort the sidebar items, renaming the items
would mess the connection between sidebar and markers. It is better to
appendChild the items in new order.

appendChild() can be performed to a dom node more than once. If the
node was already appended to a parent, it will be moved to the end of
the node list of a parent. It is handy and efficient for sorting.

-- 
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