Hi
Thanks Mike, your right I can’t use  the gmap api. Thought so because
Mike pointed me to a gmap api example


Code below works like a charm, weren’t as complicated as I thought.

//
function updateKML(kmlObject) {
        if (kmlObject) {
                if ('getFeatures' in kmlObject) {
                        var childNodes = 
kmlObject.getFeatures().getChildNodes();
                        if (childNodes !== null) {
                                var numNodes = childNodes.getLength()-1;
                                var childNode;
                                for (var x = 0; x<=numNodes; x++) {
                                        childNode = childNodes.item(x);
                                        addDebugInfo(childNode.getKml());
                                }
                        }
                }
        }
}
//
function addDebugInfo(str) {
        var debugWindow = document.getElementById('DivDebug');
        debugWindow.innerHTML += str+'\n';
}
--~--~---------~--~----~------------~-------~--~----~
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