Sorry, the example the 2nd poster linked

 http://www.wolfpil.de/v3/tabbed-infowindow.html

I managed to solve the problem now with a mix of your help and that
link.

Thanks guys!


On Jul 14, 11:59 am, "[email protected]" <[email protected]>
wrote:
> On Jul 14, 2:41 pm, William <[email protected]> wrote:
>
> > But it seems like if I want to use divs inside of those setcontent, it
> > has to be in the .html where the map div is created, and can't be in
> > the .js. At least that's my understanding from the example posted
> > above.  
>
> What example? I don't see any link to a map in this thread.
>
> If your create a DOM node, you can keep a reference to it and access
> it that way.  If you need the infowindow content in the DOM, you have
> to delay (using setTimeout) until the API code has rendered it and it
> has been added to the DOM, then you can access it using the normal
> document.getElementById.
>
>   -- Larry
>
> > Sorry if this doesn't make sense. I'm new to this.
>
> > On Jul 14, 11:23 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jul 14, 2:11 pm, William <[email protected]> wrote:
>
> > > > Thanks for the response
>
> > > > So basically the content inside the setContent can only be a string of
> > > > characters?  
>
> > > That is not what the documentation 
> > > says:http://code.google.com/apis/maps/documentation/javascript/reference.h...
> > > setContent(content:string|Node) None
>
> > > This can be an HTML element, a plain-text string, or a string
> > > containing HTML. The InfoWindow will be sized according to the
> > > content. To set an explicit size for the content, set content to be a
> > > HTML element with that size.
>
> > >   -- Larry
>
> > > > This example might work but I have like 15 markers and I
> > > > want to keep all the marker content and generation on a separate .js
> > > > because the actual page is on a template and it would be hard to find
> > > > a spot to declare all that content somewhere in there.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to