Thanks for your help. I change my script to that, i test my script, and i save the kml file to my pc, i upload that file and in googlemaps y put the url to the file and is ok: http://blog.agustinvinao.com.ar/recorrido.kml
But if i put: http://mdqcalles.agustinvinao.com.ar/kml_recorrido/532/2 <= script in php i got an error. This script return an KML file. On Fri, Dec 5, 2008 at 4:13 AM, Jagjit <[EMAIL PROTECTED]> wrote: > > Agustin, > I just use an array..it's a lot easier to work with..at least for me. > you can look at http://www.29travels.com > for how it works. > > $kml = array('<?xml version="1.0" encoding="UTF-8"?>'); > $kml[] = '<kml xmlns="http://www.opengis.net/kml/2.2">'; > $kml[] = ' <Document>'; > $kml[] = ' <description><![CDATA[]]></description>'; > $kml[] = ' <Style id = \'defaultStyles\'>'; > $kml[] = ' <Polystyle><color></color>'; > $kml[] = ' <fill>0</fill><outline>1</outline></Polystyle>'; > $kml[] = ' <LineStyle><color>33333333</color></LineStyle></Style>'; > $kml[] = ' <Folder><name>Areas</name>'; > .... > your KML stuff here... > > $kml[] = ' </Folder></Document>'; > $kml[] = '</kml>'; > $kmlOutput = join("\n", $kml); > > On Dec 5, 5:21 am, "Agustin Nicolas Viñao Laseras" > <[EMAIL PROTECTED]> wrote: > > Any of you have the configuration for the apache server, and php for make > > kml files? > > > > I check my php script and thah character is a return and in this > filehttp://g.codesite.articles.googlepages.com/phpsql_genkml_ls.phphavethe > > same charaters for any line. > > > > If i upload my file and use an url to that uploaded file, works > perfectly, > > but if i put the url to the dinamic process, dont work. > > > > I dont know wath why my script to generate a kml file dont work. > > > > On Thu, Dec 4, 2008 at 9:05 AM, Agustin Nicolas Viñao Laseras < > > > > > > > > [EMAIL PROTECTED]> wrote: > > > Thank for your reply, i can see these characters. > > > > > I make my files with DOMDocument php functions, any of you know how to > > > check for these invalid characters? or how to output only a valid > document > > > in php? > > > > > Thanks again. > > > > > On Thu, Dec 4, 2008 at 3:21 AM, chrismarx <[EMAIL PROTECTED]> wrote: > > > > >> open up your kml in notepad, and you'll see a block character []. > > >> anyways, i took those 2 characters out (1 at beginning and 1 at end), > > >> and put the file on googlepages, it now loads on maps.google.com > > > > >>http://maps.google.com/maps?f=q&hl=en&geocode=&q=http:%2F%2Fchrismarx. > .. > > > > >> On Dec 3, 9:53 pm, "Agustin Nicolas Viñao Laseras" > > >> <[EMAIL PROTECTED]> wrote: > > >> > I use this code for make my KML file from db: > > >> > phpsql_genkml_ls.php< > > >>http://g.codesite.articles.googlepages.com/phpsql_genkml_ls.php> > > > > >> > I dont see any funny character. > > > > >> > On Wed, Dec 3, 2008 at 11:51 PM, Rossko <[EMAIL PROTECTED] > > > > >> wrote: > > > > >> > > I can see a 'funny character' in your KML that may be the problem > ... > > > > >> > > <?xml version="1.0" encoding="UTF-8"?> **here** > > > > >> > > usinghttp:// > mdqcalles.agustinvinao.com.ar/kml_recorrido/532/999.kml > > >> > > as an example. > > > > >> > > cheers, Ross K- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
