Thanks, it works now.

I did not see my mistake.

"Perhaps you should only remove markers that are no longer in the viewport."

I agree, but I'm not sure how to do it and how it will really change
anything...

The server will still send me the markers that need to be shown...

Unless the server side application does not send the markers that I already
have... But how do I with SQLite only load does markers that I don't already
have?

Thanks allot.

On Sat, May 1, 2010 at 10:19 PM, William . <[email protected]> wrote:

> On Sun, May 2, 2010 at 4:32 AM, Jean-Nicolas Boulay Desjardins <
> [email protected]> wrote:
>
>>  The problem is that when the markers are removed (setMap(null)) they
>> can't be shown again even when they are downloaded a second time...
>>
>
> you've got two arrays, one called "markers" containing the Markers, and the
> other called "markersArray" containing the marker ids, but these aren't
> synchronized properly.  When new markers are downloaded, the entire
> "markers" array is emptied and each marker is setMap(null), but their ids
> remain in "markersArray" so the application thinks they are still on the
> map.  Perhaps you should only remove markers that are no longer in the
> viewport.
>
> ...
>
> --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>



-- 
Name / Nom: Boulay Desjardins, Jean-Nicolas
Website / Site Web: www.jeannicolas.com

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