I change this:
// A function to create the marker and set up the event window
function createMarker(point,name,html) {
var marker = new GMarker(point);
// === store the name so that the tooltip function can use it
===
marker.tooltip = '<div class="tooltip"><nobr>'+name+'</nobr></
div>';
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
gmarkers[i] = marker;
htmls[i] = html;
side_bar_html += '<a href="javascript:myclick(' + i + ')"
onmouseover="mymouseover('+i+')"
onmouseout="mymouseout()">' + name + '</a><br>';
i++;
map.addOverlay(marker);
to this, and nothing:
// A function to create the marker and set up the event window
function createTabbedMarker(point,html1,html2,label1,label2) {
var marker = new GMarker(point);
// === store the name so that the tooltip function can use it
===
marker.tooltip = '<div class="tooltip"><nobr>'+name+'</nobr></
div>';
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowTabsHtml([new
GInfoWindowTab(label1,html1), new GInfoWindowTab(label2,html2)]);
});
gmarkers[i] = marker;
htmls[i] = html;
side_bar_html += '<a href="javascript:myclick(' + i + ')"
onmouseover="mymouseover('+i+')"
onmouseout="mymouseout()">' + name + '</a><br>';
i++;
map.addOverlay(marker);
On 4 Set, 14:56, jps <[EMAIL PROTECTED]> wrote:
> Thank you Andrew,
>
> Sorry my ignorance, but I already look that examples, and I can´t
> understand where I change...or where I have to change code.
> Can you help send how can I apply this changes.
>
> regards,
>
> jps
>
> On 4 Set, 13:24, "warden [Andrew Leach - Maps API Guru]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Sep 4, 12:55 pm, jps <[EMAIL PROTECTED]> wrote:
>
> > > Hi All,
>
> > > I'm very new to Google Map and development issues.
>
> > > I'tm trying same code examples, and now I have a XML data and a Map,
> > > but I do not know how / where in code I define for InfoWindow have 2
> > > ou 3 tabs.
>
> > Since you already know about Mike's tutorials, why not look at his
> > tabbed infoWindows?http://econym.googlepages.com/basic10.htm
>
> > > Here is the code:
>
> > Did you read the posting guidelines?
>
> > > NOTE: another question? how can I use the markers link in other page,
> > > like the example. I want to use that markers link outside that
> > > frame...like in text in other page.
>
> > To jump to a new URL, set window.location to the new URL. You can do
> > that inside a marker's click handler (instead of opening an
> > infoWindow, for example). You can include ordinary <a> links inside
> > the text of an infoWindow.
>
> > Andrew- Ocultar texto citado -
>
> - Mostrar texto citado -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---