Hi Nava-

If you mean using MarkerManager in conjunction with the Marker.visible
property, there is none. MarkerManager was originally written before
such a property existed, so it doesn't take it into account. You can
try to modify the  code to respect the visibility, however. The main
thing is to modify the addOverlay/removeOverlay functions so that they
remember if a marker has been hidden, and hide or show it accordingly.

Alternatively, you could use the removeMarker() function to "hide" the
marker, and see what the performance is like with that.


- pamela


On Fri, Sep 4, 2009 at 5:16 PM, Nava Carmon<[email protected]> wrote:
>
> Thanks a lot, Pamela, it works great now. My problem was, that i
> didn't assign the toggle function to change event of my checkbox.
>
> Now i'd like to improve a performance of showing/hiding so many markers.
> Can you point me to an example on how can i show/hide markers using
> marker manager?
>
> I couldn't realize it from its available public functions.
>
> Thanks a lot for your help,
>
> Nava
>
> On Sep 3, 2009, at 3:29 PM, pamela (Google Employee) wrote:
>
>>
>> Hi Nava-
>>
>> The demo gallery also has a non-Flash demo that should help you:
>> http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MarkerCategoriesDemo/MarkerCategoriesDemo.html
>>
>> Source:
>> http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MarkerCategoriesDemo/srcview/index.html
>>
>> - pamela
>>
>> On Thu, Sep 3, 2009 at 6:09 PM, navac<[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> I need to show on my map markers, that I create by parsing a kml
>>> file.
>>> Markers visibility are supposed to be handled by a simple checkbox.
>>> You have such a demo, that is called MarkerToggleFlash, but it has
>>> only .fla & .swf files, without actual .as code. Can you post the
>>> code, or just the relevant piece of code, that toggles markers
>>> visibility? By now i just removeOverlay & addOverlay, which is
>>> relatively slow, since i have near 1500 markers in this file. I tried
>>> to play with a visibility property, but it seems do nothing without
>>> proper refreshing. Can you post some code snippet that does it? Also,
>>> how can i show/hide marker categories, using MarkerManager?
>>>
>>> Thanks a lot,
>>>
>>> Nava
>>>>
>>>
>>
>> >
>
>
> >
>

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

Reply via email to