Roger, one info window.

Do you recommend setContent + close() + open(marker) or simply setContent()
+ setPosition().

Also, I'm finding that the window wipes out the content it's showing after
it's closed. So when I go back to the same pin and call
setContent(myInfoDiv) the content is null :)

On Wed, Aug 24, 2011 at 7:15 PM, Chris Broadfoot <[email protected]> wrote:

> Hi Dan,
>
> The recommendation is to only have one InfoWindow, changing the content and
> updating its position (or using the "open" method).
>
> This is the technique used in the example you linked.
>
> Chris
>
> --
> http://twitter.com/broady
>
>
>
> On Thu, Aug 25, 2011 at 12:08 PM, DanZ <[email protected]> wrote:
>
>> Reading this thread I'm not sure if info windows should be closed before
>> new ones are opened. This example does not call close before open:
>> http://www.geocodezip.com/v3_markers_infowindows.html
>>
>> Assuming a global info window, what's the right thing to do?
>> Set a position or pass marker during open()?
>> Call close before open?
>> Check what marker was selected previously before closing?
>> Create a separate info window per marker, so that every marker owns its
>> own window?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps JavaScript API v3" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-maps-js-api-v3/-/388vBU5tnZAJ.
>> 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.
>>
>
>  --
> 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.
>

-- 
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