javascript - How to change google maps Drawing Manager toolbar tooltip? -


I have a status with the Google Maps drawing manager, I want to change the Drawing Manager toolbar default tooltip. When we mouse over the drawing manager toolbar (marker moves the mouse over the circle), then we see that "add a marker", "create a circle" tooltip. I want to change Toolbar Tooltip as "Add new location", "Draw area". Is it possible to change Google Map API version 3?

Thanks in advance

Nodes for buttons are not available through the API < / P>

Another approach (using jQuery, but it would also be possible without the framework):

  $ (map.getDiv ()). A ('mouseover', 'img [src = "https://maps.gstatic.com/mapfiles/drawing.png"]', function (e) {$ (E.delegateTarget) .find ('img [src = "Https://maps.gstatic.com/mapfiles/drawing.png"] '). Each (function () {$ (this) .closest (' div [title] '' atr '(' title ', function () {Switch (this title)} {'Add a marker': return 'Add new location'; break; case 'draw a circle': return 'pull a field'; break; default; return it.Title;}})} }});});  

This button looks at the mouseover-event (because you will never know that the document Available buttons) and then modify the title.

But this approach will only work when the API uses the language as an English language. -The top property of the image must be checked (this is just a description that can be used to determine the type of shape used for the button)


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -