Gil try this:
function createMarker(point, html, iconStr) {
bounds.extend(point);
var icon = coloredRideshareIcon(iconStr);
var marker = new GMarker(point, {icon: icon});
var label1 = "1st Tab";
var label2 = "2nd Tab";
gmarkers.push(marker);
marker.type = iconStr;
GEvent.addListener(marker, 'click', function()
{
// FYI: All info window tabs get sized to the size of the
largest
tab.
// FF 1.5 fix
var firsttab = "<div style=\"white-space:nowrap;\"><div
align=\"left
\" class=\"smalltext\">"+html +"</div></div>";
var secondtab = "<div style=\"white-space:nowrap;\"><div
align=\"left
\" class=\"smalltext\">"+html +"</div></div>";
marker.openInfoWindowTabsHtml([new
GInfoWindowTab(label1,firsttab),
new GInfoWindowTab(label2,secondtab)]);
// marker.openInfoWindowHtml('<div
class="Style">'+yourContent+'</
div>);
});
map.addOverlay(marker);
}
On Oct 5, 4:07 pm, Gil <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion, but I tried to understand what the codes
> should be and where to put them, but when I tried to preview the
> changes, my map went away, totally. I did get it back, but I just
> don't know how to and what and where to add the code so I can make
> multi-tab windows. I don't know what to put as code into the body of
> the map and what to then change at my var points to get the multi-
> tabs. You can't imagine how hard and how long I've been messing with
> this situation. If I see an example of it being done, I can
> understand what I have to do, I'm just not able to understand how to
> do it. I really like my map and the features it has, the way it's set
> up now so all I need is to have the extra tabbed info windows and I
> can add all the additional things I want to add. This is the third
> style map I've worked on and I like it the best. The other maps had
> multi-tabs, but no colored markers or colored markers, multi-tabs, but
> no clickable side bar and I couldn't figure them out as much as the
> one I have now. All I want is to add multi-tabs to this map and I'll
> have a map that I'm sure will help a lot of other people with the
> features it has in a fairly simple set of code, where they can add
> photos to the extra tabs, use multi-colored markers to segregate
> different types of info, and be able to select which markers should
> show to see the different catagories. I've looked at hundreds of
> example maps and studied their code. Only a couple have any kind of
> colored marker, so they have lots of the same default marker, hardly
> any have multi tabbed windows so they are limited to what 1 window
> will hold. I'll have to keep searching and reading all the posts till
> I see an example that I can understand.
>
> On Oct 5, 3:01 pm, Lan Mind <[EMAIL PROTECTED]> wrote:
>
> > Hello Gil,
>
> > Your "createMarker(point, html, iconStr)" function needs to have a
> > marker.openInfoWindowTabsHtml() method in it. You will need to add the
> > required parameters to this method using your content.
>
> > See:
>
> >http://code.google.com/apis/maps/documentation/reference.html#GInfoWi...
>
> > &
>
> >http://econym.org.uk/gmap/basic10.htm
>
> > On Oct 5, 1:23 pm, Gil <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the suggested link example, but it's just to difficult for
> > > me to figure
> > > out what parts of the code I need and which I don't. I took the
> > > example,
> > > changed to my key, and removed and tested, put back and tested all the
> > > lines
> > > to try to find just the code that would give me the multi-tabbed
> > > windows.
> > > In the example they use map.addOverlay(marker) at the end of any var
> > > point
> > > and it just stops any markers from showing. They also have a + in the
> > > windows
> > > and I can't get rid of it nor can I add any info to it so it would be
> > > useable.
> > > On my map I did try to add a var point, it won't come up of course.
> > > On their
> > > map I was able to figure out how to add a third tab. I think their map
> > > was supposed
> > > to have a sidebar, but it don't show up. Their changed map is
> > > atwww.tiltonrealty.com/blank-02.html, my map now has 1 var point in
> > > their style.
> > > I've also tried to use GMapEZ and his .js, and I could get a lot of
> > > what I want to
> > > work, but couldn't figure out how to add the great sidebar that you
> > > have with the
> > > check mark selections. I'm just plain stuck until I can find a
> > > example like yours
> > > with a couple of multi tabbed windows to study. Thanks
>
> > > On Oct 4, 3:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > On Oct 4, 3:22 pm, Gil <[EMAIL PROTECTED]> wrote:
>
> > > > > BTW, The samples at these locations are by far the best and only for
> > > > > having colored markers and being able to turn on and off the different
> > > > > colored markers of all the sample maps I've seen. Some maps have
> > > > > hundreds of the exact same default marker where they could zero in on
> > > > > particular info windows and point out particular bits of info using
> > > > > information from your samples.
>
> > > > > If you had a multi-tabbed info-window at the sample not using xml, I'd
> > > > > be able to figure out what I need to change to get what I was looking
> > > > > for. Thanks, Gil
>
> > > > > using xml (but you can use the colored icon
> > > > > code...)http://www.geocodezip.com/v2_basic8h.asp?filename=example_icons.xml
>
> > > > > not using xml:http://www.geocodezip.com/v2_MarkerCheckBoxesNoXml.asp
>
> > > > If you made an attempt to add them to your map, I might have something
> > > > to start with... I don't really understand why modifying the version
> > > > that uses xml to a hard coded version should be a problem.
>
> > > > A quick search of the group finds this
> > > > example:http://www.derby-college.ac.uk/modules/map/map10a.php
>
> > > > -- Larry
>
> > > > > On Oct 4, 2:41 pm, Gil <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi Larry,
>
> > > > > > I really have tried. I've searched all posting for a year plus
> > > > > > back,
> > > > > > I've viewed the code
> > > > > > at lots of samples, but just can't understand how to add the tabs,
> > > > > > where all the other
> > > > > > samples mess up your multi-colored markers and I don't want to lose
> > > > > > what you've
> > > > > > done with the side form etc. I think I have to add the multi-Tabs
> > > > > > by
> > > > > > using <div>,
> > > > > > but so far I just lose the map. Most of what I have is from your
> > > > > > sample, and I've
> > > > > > been able to add a number of features that I'll expand on as soon
> > > > > > as I
> > > > > > can create
> > > > > > the extra tabs without losing what I have. Since my map will only
> > > > > > have no more then
> > > > > > 20 or so markers, and I understand how to add links, photos, colors
> > > > > > and font sizes to the
> > > > > > info windows, I'm hesatating to try to learn XML yet. With what I
> > > > > > have so far, I'm
> > > > > > so close to having an easy set of code to work with. Thanks for
> > > > > > looking at what I have.
>
> > > > > > On Oct 4, 1:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > > > > wrote:
>
> > > > > > > On Oct 4, 1:23 pm, Gil <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I really need help. How can I add multi-tab info windows to the
> > > > > > > > colored markers. My web site map is fairly simple as it
> > > > > > > > doesn't use
> > > > > > > > XML, or .css files, but it has most everything I want to put
> > > > > > > > together
> > > > > > > > a useable map except I can't add photos and additional
> > > > > > > > information
> > > > > > > > about the locations.
> > > > > > > > The map I'm working on
> > > > > > > > ishttp://www.tiltonrealty.com/Test-Gil-Markers-02.html
> > > > > > > > If I could just get the infomation to make any one of the
> > > > > > > > markers to
> > > > > > > > be a 3 tabbed bubble, I can start adding all the information.
> > > > > > > > I'm
> > > > > > > > being allowed to use the office web site to show my map for now
> > > > > > > > and
> > > > > > > > it's from the office web site that I got the idea to put
> > > > > > > > together a
> > > > > > > > history of my movements.
>
> > > > > > > I don't see any attempt to add tabbed infoWindows to that page.
> > > > > > > Have
> > > > > > > you seen these
> > > > > > > examples:http://www.geocodezip.com/mapXmlTabs.asphttp://www.geocodezip.com/map...
>
> > > > > > > They all use xml, but you can use the createTabbedMarker function
> > > > > > > and
> > > > > > > provide data like you do in your current page to the create marker
> > > > > > > function.
>
> > > > > > > There is always Mike Williams' tutorial as well:
> > > > > > > Part 10 Tabbed Info WIndowshttp://econym.org.uk/gmap/basic10.htm
>
> > > > > > > -- Larry- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---