> I have the db set up just like in the tutorial. The file that echo's
> the kml works fine it produces all the addresses and lat and lng and
> all the information in the markers table.
Really? I used your URL given in one of your load() functions
geoXml = new GGeoXml('http://pesttrackers.com/phpmysql_kmlnl.kml');
which gave a valid KML file, containing network links to two other
files
http://pesttrackers.com/phpsql_genkml.kml
http://pesttrackers.com/phpsql_genkml_ls.kml
which are both 404 not found
I looked at the URL in another of your load() functions
GDownloadUrl("phpsql_genkml3.php",...
and that does seem to produce mostly valid KML (some of the placemarks
have no valid coordinates or style, but the others should work)
You can try that by visiting maps.google.com and pasting the url
http://pesttrackers.com/phpsql_genkml3.php into the search box.
Unfortunately, in your own code the callback function trying to
process that file is looking for XML in the form of <markers> tags and
suchlike, and doesn't know how to deal with KML elements like
<Placemark>
First problem to sort out is that javascript only allows one function
with any given name, you can't have two load(). The browser won't
know which one you meant to call, indeed I think different browsers
call different occurances when the rules are broken.
The next thing to sort out is if you are going to go with KML or not.
If you are, you can dump the XML <marker> style parser and substitute
a KML parser. You might use the native GGeoXml, or one of the third
party parsers like GeoXml, or write your own.
There might well be other problems, I'm not reading all that code
carefully. Better to provide a link to obtain relevant help.
http://groups.google.com/group/google-maps-api/browse_thread/thread/66ea53a601b3b7ba#
So some of these scripts to
> my knowledge are working correctly.
--
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.