On Feb 20, 11:39 am, Mike Williams <[email protected]> wrote:

> You could crawl through the DOM looking for the alt text, but be aware
> that the phrasing of the text might possibly change in future releases

Another alternative is to look for 'log' attribute. I don't say that
is more stable but the benefit is that it is language independent. The
mysterious 'log' attribute value for the center button is
"center_result".

function hideReturn(){
  var elems = map.getContainer().getElementsByTagName("div");
  for (var i=0; i < elems.length; i++){
    if(elems[i].getAttribute("log") == "center_result"){
      elems[i].style.backgroundColor = "#ccf";
      elems[i].style.cursor = "";
      elems[i].title = "";
      return;
    }
  }
  window.setTimeout("hideReturn()",100);
}
hideReturn();

http://esa.ilmari.googlepages.com/noreturn.htm

The button graphics is hidden under the colored div and cursor change
and tooltip are deleted but the button still works because I find it a
very useful button. You just have to set it useful by map.savePosition
().

If you want to disable the button, just set:
elems[i].style.visibility = "hidden";
but the graphics stay visible.

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