label1 should be labels[0]
label2 should be labels[1]
On Aug 3, 10:53 am, JPC <[email protected]> wrote:
> Spoke too soon! Now the info window won't open? Any suggestions?
>
> On Aug 3, 1:41 pm, JPC <[email protected]> wrote:
>
>
>
> > May you live a long, healthy life.
>
> > On Aug 3, 1:31 pm, Grok Lobster <[email protected]> wrote:
>
> > > Just add it to the arguments that are passed when you call
> > > createTabbedMarker like this (notice no braces)
> > > var marker9 = createTabbedMarker(point, [...], [...], 'GCE');
>
> > > and then your createTabbedMarker function should be
> > > createTabbedMarker(point,htmls,labels,name) {
> > > var marker = new GMarker(point, {title: name});
> > > ...
>
> > > On Aug 3, 10:24 am, JPC <[email protected]> wrote:
>
> > > > Ok that did work but I should have been more clear on my ultimate
> > > > intentions. I'd also like to eventually extend this concept to the
> > > > other 25 locations so I'm assuming that I need to find a way to pass
> > > > the title to the function.
>
> > > > I declared a variable: var title = {title: 'GCE'}
>
> > > > and then added that variable to the function (in with the GMarker
> > > > part):
>
> > > > function createTabbedMarker(point,htmls,labels) {
> > > > var marker = new GMarker(point, title);
> > > > GEvent.addListener(marker, "click", function() {
> > > > marker.openInfoWindowTabsHtml([new
> > > > GInfoWindowTab(label1,html1),
> > > > new GInfoWindowTab(label2,html2)]);
> > > > });
> > > > return marker;
> > > > }
>
> > > > Seemed logical, but what do I know ?! Now the map won't render
> > > > properly.
>
> > > > On Aug 3, 12:50 pm, Grok Lobster <[email protected]> wrote:
>
> > > > > It belongs in the createTabbedMarker function where the marker is
> > > > > created
>
> > > > > var marker = new GMarker(point);
>
> > > > > should be
>
> > > > > var marker = new GMarker(point, {title:GCE});
>
> > > > > On Aug 3, 9:33 am, JPC <[email protected]> wrote:
>
> > > > > > Hi Grok,
>
> > > > > > Thanks for the quick reply. I've tried it in two places:
>
> > > > > > map.addOverlay(marker9, {title: 'GCE'});
>
> > > > > > and
>
> > > > > > var marker9 = createTabbedMarker(point, [...], [...], {title:
> > > > > > 'GCE'});
>
> > > > > > Neither of which did it. Am I hot or cold?
>
> > > > > > On Aug 3, 12:06 pm, Grok Lobster <[email protected]> wrote:
>
> > > > > > > You've got the title for that marker in with the point
> > > > > > > declaration,
> > > > > > > not the marker.
>
> > > > > > > On Aug 3, 8:52 am, JPC <[email protected]> wrote:
>
> > > > > > > > Hi,
>
> > > > > > > > I'm attempting to implement thetabbedinfo windows described at:
>
> > > > > > > >http://econym.org.uk/gmap/basic10.htm
>
> > > > > > > > It's working great (I've only incorporated it with one
> > > > > > > > placemark. Use
> > > > > > > > the drop down list to zoom to Georgia Coastal Ecosystems
> > > > > > > > (GCE)). The
> > > > > > > > exception is that the title will not display when using a
> > > > > > > > rollover (as
> > > > > > > > with the other locations).
>
> > > > > > > > Here's my
> > > > > > > > url:http://gce-lter.marsci.uga.edu/public/gis/LTERmaps.html
>
> > > > > > > > Does something extra need to be added to the function I'm
> > > > > > > > calling?
>
> > > > > > > > Thanks- 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
-~----------~----~----~----~------~----~------~--~---