So im using jquery to search and replace certain text in my html page. Which is:
function offon(){
$("#sidebar li").each(function(){
$(this).html($(this).html().replace(/Off Premise/, "Liquor Store"));
$(this).html($(this).html().replace(/On Premise/, "Bar/Restaurant"));
});
}
This is the createmarker function, it uses a 3rd part tooltip the div is "simple_example_window" that contains all the html. I tried using simple_example_window for the div in the offon function but it did not do anything.
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extinfowindow/docs/examples.html is the plugin.
function createMarker(point, name, address, type) {
var marker = new GMarker(point, customIcons[type]);
markerGroups[type].push(marker);
var html = '<span class="name"><b>' + name + '</b></span> <br/>' + address + '<br/>' + type;
GEvent.addListener(marker, 'click', function() {
marker.openExtInfoWindow(
map,
"simple_example_window",
html,
{beakOffset: 2}
);
It works like a charm. The only problem now is my tooltips in google maps are not changing.
Any ideas?