Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kmz branch r123 - sort geo.docs alphabetically by url #107

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Open

kmz branch r123 - sort geo.docs alphabetically by url #107

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.

geo.parse([G, U, L]);

for (var i=0; i < geo.docs.length; i++) { geo.hideDocument(geo.docs[i]); }

var aux;
switch(N){
    case "G":
        aux=geo.docs[0].url;
        window.alert(aux);                     Shows G - Correct!
        geo.showDocument(geo.docs[0]);
        break;
    case "U":
                aux=geo.docs[1].url;
        window.alert(aux);                     Shows L - ¿why?
        geo.showDocument(geo.docs[1]);
        break;
    case "L":
                aux=geo.docs[2].url;
        window.alert                           Shows U - ¿why?
        geo.showDocument(geo.docs[2]);
        break;
        default:
                break; 

What is the expected output? What do you see instead?

    case "G":
        aux=geo.docs[0].url;
        window.alert(aux);                     G

    case "U":
                aux=geo.docs[1].url;
        window.alert(aux);                     Expect U (Second in the array)

    case "L":
                aux=geo.docs[2].url;
        window.alert                           Expect L (Third in the array)


What version of the product are you using? On what operating system?

kmz branch r123


Original issue reported on code.google.com by [email protected] on 13 Mar 2015 at 2:28

@GoogleCodeExporter
Copy link
Author

Additional tests -  This happens on Chrome...Not in Firefox...

Original comment by [email protected] on 13 Mar 2015 at 3:18

@GoogleCodeExporter
Copy link
Author

If it is usefull this is not happening using polys branch r123.

Original comment by [email protected] on 13 Mar 2015 at 4:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant