topical media & game development
mashup-gmaps-ch16-03.cgi / cgi
#!/usr/bin/perl
use DBI;
use strict;
use CGI qw/:standard/;
print header(-type => 'application/vnd.google-earth.kml+xml xml');
my sth = sth->execute();
my (count) = ('',0);
while (my sth->fetchrow_hashref())
{
if (row->{type})
{
if (row->{type}));
row->{type};
}
row->{title},
row->{addb},
);
printf("<Style><IconStyle><Icon><href>http://maps.mcslp.com/examples/%s.png></Icon></IconStyle></Style>",lc(Mode>relativeToGround</altitudeMode>\n<coordinates>\%s,\%s,250</coordinates>\n</Point></Placemark>\n",
row->{lng},
sth->finish();
print("</Folder></Folder>\n</kml>\n");
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.