Hey Pam! Thx again for your answer! However, I'll give it one last try as I might have forgotten important details in my previous descriptions : So the principal idea is, of course, to have a map with markers, shown thanks to the Marker Manager, meaning at each new zoom level, cleaning the array(s) and showing again the markers that are supposed to be shown. We are ok on this idea. But if I told you I wanted to do that with the flex component calendar. I already got my functions working perfectly (something like "if (date == ...)") but what I need right now is a real reset of the Marker Manager, for it to load each time the markers of the day only (following the "if(date==...)"). Maybe this is what you were advising me from the begining with the clearMarkers() command, and in that case I have nothing to say except that it still doesn't work on my code. Cheers, Alban
On 12 mai, 03:42, pamela fox <[email protected]> wrote: > Hi Alban- > > The MarkerManager keeps an internal array and then loads markers for > the viewport shown. So if the array wasn't properly cleared, then that > would happen - the markers re-appearing. > > If you can't post your link online, then you could put trace() > statements in the actual MarkerManager.as file and see if the array > isn't being cleared. > > Yes, there's been only one version of the MarkerManager. > > - pamela > > On Mon, May 11, 2009 at 6:31 AM, Alban <[email protected]> wrote: > > > Thanks Pam. > > However the problem is still persistent. > > Maybe I should put it this way: it's as if the MarkerManager created a > > buffer for my array, as if the already shown data was kept somewhere > > (even if erased from the map), and shown again when a new > > mgr.addMarkers() command is launched. > > By the way, juste to be sure, the last MarkerManager.as version is > > 1.0? > > > On 10 mai, 10:29, pamela fox <[email protected]> wrote: > >> Hi Alban- > > >> I'm unable to replicate the issue. This code works as expected for me: > > >> var mgr:MarkerManager = new MarkerManager(map, {maxZoom:20}); > >> mgr.addMarkers(getWeatherMarkers(20), 3); > >> mgr.addMarkers(getWeatherMarkers(200), 6); > >> mgr.addMarkers(getWeatherMarkers(1000), 8); > >> mgr.addMarker(new Marker(getRandomPoint()), 14, 20); > >> mgr.refresh(); > >> mgr.clearMarkers(); > > >> Please post a link or upload your full code. You should definitely be > >> calling clearMarkers(), not clearOverlays(). > > >> - pamela > > >> On Sat, May 9, 2009 at 1:27 AM, Alban <[email protected]> wrote: > > >> > Hello again! > > >> > Can anyone help me please? I really tried everything with no success > >> > and I'm completely stuck now. > > >> > Thanks, > >> > Alban > > >> > On 3 mai, 22:07, Alban <[email protected]> wrote: > >> >> Hi everyone! > > >> >> I'm having a problem with the MarkerManager. In fact, this problem has > >> >> already been taken into consideration, but I couldn't find any > >> >> solution : > > >> >> When I clear all markers (with map.clearOverlays() or > >> >> markerManager.clearMarkers() or markerManager.removeMarker(marker)), > >> >> it obviously erase all the markers, but when I zoom in, all markers > >> >> are reloaded. > > >> >> Could anyone help me to erase all markers, on all zoom levels? > > >> >> Thank you, > >> >> Alban --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
