hi this is my code

                function sprawdzaj(kategoria,otoczenie)
                {
                        if(document.getElementById("kat1").checked==false &&
document.getElementById("otocz1").checked==false)
                                {
        
ukryjPokazKategorie(kategoria,false);ukryjPokazOtoczenie(otoczenie,false);
                        }

                                else    if 
(document.getElementById("kat1").checked==true &&
document.getElementById("otocz1").checked==false)
                                                {
        
ukryjPokazKategorie(kategoria,true);ukryjPokazOtoczenie(otoczenie,false);
                                                }
                                        else    if 
(document.getElementById("kat1").checked==false &&
document.getElementById("otocz1").checked)
                                                        {
        
ukryjPokazKategorie(kategoria,false);ukryjPokazOtoczenie(otoczenie,true);
                                                        }
                                                        else
                                                                        {
        
ukryjPokazKategorie(kategoria,true);ukryjPokazOtoczenie(otoczenie,true);

                                                                }
                }
                function ukryjPokazKategorie(kategoria,pokaz)
                {
                        // kategoria oznacza id kategorii której widzialność 
trzeba zmienić
                        // jeśli pokaz = false, to znaczy że mamy ukryć, w 
przeciwnym
wypadku pokazać

                        // dla każdego z markerów
                        for(var i=0; i<markery.length; i++)
                        {
                                // jeśli poszukiwana kategoria jest kategorią 
markera
                                if(markery[i].kategoria==kategoria)
                                {
                                        // to go ukrywamy lub pokazujemy, w 
zależności od argumetu pokaz
                                        if(pokaz==true){
                                                markery[i].show();
                                                }
                                        else{
                                                markery[i].hide();}
                                                odswiezSidebar();

                                }
                        }
                }       function ukryjPokazOtoczenie(otoczenie,pokaz)
                {
                        // kategoria oznacza id kategorii której widzialność 
trzeba zmienić
                        // jeśli pokaz = false, to znaczy że mamy ukryć, w 
przeciwnym
wypadku pokazać

                        // dla każdego z markerów
                        for(var i=0; i<markery.length; i++)
                        {
                                // jeśli poszukiwana kategoria jest kategorią 
markera
                                if(markery[i].otoczenie==otoczenie)
                                {
                                        // to go ukrywamy lub pokazujemy, w 
zależności od argumetu pokaz
                                        if(pokaz==true){
                                                markery[i].show();}
                                        else{
                                                markery[i].hide();}
                                                odswiezSidebar();
                                }
                        }
                }

and html
        <input checked="checked" id="kat1" type="checkbox"
onclick="sprawdzaj('LED','kat1')" /> LED
        <input checked="checked" id="otocz1" type="checkbox"
onclick="sprawdzaj('otocz1','szkola')"  /> szkoly

and my problem is that my markers have category of LED and they also
belong to otoczenie szkoly an when i uncheck checkbox with LED from
map disaperd markers who have LED as category after this i uncheck
szkoly and from map disaperd markers who have category LED and
otoczenie szkola and this is ok. Problem is that when i want to check
again for example LED i want to have only markers that have category
LED but i dont want to have on my map markers that have LED and
szkola. I think that my problem is somewhere in ukryjPokazOtoczenie
and ukryjPokazKategoria. Please help me

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

Reply via email to