Greetings all, Using GGeoXml and .kml files to create/add/remove overlays to a map based on user events (checkbox clicks) I am receiving the following console error: "Failed to load resource: the server responded with a status of 414 (Request-URI Too Large)"
I've spent some time investigating and it seems that my kml files contain a bit too much data. They can be turned into layers and displayed on the map one at a time, but if I wish to display them all at the same time then I cross the URI request threshold. No problem, I can live with that. My question is: is there a way for me to capture the error message that is returned from mts [x] .google.com server? If I can catch it , then I can display something that explains exactly what the issue is to the user. It appears that the google maps api currently captures the error and prints it out to the console, but it doesn't appear to offer a handle on the error to the api user (?) The error occurs after calling overlay.show() and/or new GGeoXml(). GGeoXml provides a callback which appears to always returns an overlay, even if the "failed to load resource..." error has been thrown, the callback returns an overlay with none of the KML data added to it. overlay.show() doesn't provide a callback. I have tried using try/catch, but the error is not caught. Can anyone suggest a way for me to trap this error? Many thanks in advance for your time. Yomi PS: First ever post! I think I've stuck to the house rules but please forgive me if I've skipped/missed something. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
