On Dec 1, 9:59 am, "[email protected]" <[email protected]> wrote: > On Dec 1, 9:40 am, "[email protected]" <[email protected]> > wrote: > > > On Dec 1, 9:31 am, needgooglemaphelp <[email protected]> wrote: > > > >www.pesttrackers.com/func.inc.phpThisworkedyesterday and all the time > > > before today when I tried to do a search. If it is empty a message does > > > come up but when I try to search for a location it does not work at all. > > > Nothing happens when I hit the submit button. Please could you tell me the > > > possible errors because I don't see anything wrong with the code:( > > > 1. Why are you including the API twice? > > 2. The first thing to check on a map that accesses data via an xml > > feed is that the feed is valid and working. Yours > > isn't:http://www.pesttrackers.com/phpsqlsearch_genxml.php?lat=-118&lng=30&r... > > Even when I change the latitude and longitude to be valid... > > http://www.pesttrackers.com/phpsqlsearch_genxml.php?lat=30&lng=-118&r... > > But looking closer (view source), I do see data there, but it isn't > recognized as xml and it isn't valid (bunch of white space at the > top. Did this script change recently? Did the data in the database > change recently? > > If I paste the content from that URL into: > > http://www.w3schools.com/xml/xml_validator.asp > > I get: > XML Parsing Error: XML or text declaration not at start of entity > Location:http://www.w3schools.com/xml/xml_validator.asp > Line Number 5, Column 1: > <?xml version="1.0"?> > ^
The results of the w3c validator agree: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.pesttrackers.com%2Fphpsqlsearch_genxml.php%3Flat%3D30%26lng%3D-100%26radius%3D25000&charset=%28detect+automatically%29&doctype=Inline&group=0 (remove the white space in the php file that generates the xml, the first thing output should be the xml headers, followed by the <? xml ...> tag on the first line of the output) I think how to do that is explained in the tutorial, but it is not a google maps API issue, it is a php/xml generation issue. Searching this group will yield some suggestions as well, this problem has come up before. -- Larry -- 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.
