[postgis-users] can i get script code to display kml on gmaps?

Eli Juniati elly_tgd_05 at ymail.com
Sat Aug 1 07:55:26 PDT 2009

hi all....

i have been read mail in postgis-user on Thu Nov  8 13:57:30 PST 2007
about : Write out KML for each database record?

i have a problem with my minithesis. 
My minithesis topic is "automation search addressing and shortest route based on web".
i have a database in postgis then my goal is display it on google maps, which appropriate with query from user.
so, i've convert the data into KML then i want to overlay it on google maps, but failed...
i tried to display it (the KML) on google earth it's OK...

i used this code
 to overlay on gmaps:
function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));

        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());

        map.setCenter(new GLatLng(-7.7698805, 110.3786888), 16);

var kmlUrl = "http://eligeodesi.web.ugm.ac.id/cobaupload/Kompleks F
Teknik UGM.kml" + Math.round(Math.random() * 10000000000);

        var kml = new GGeoXml(kmlUrl);
        var defaultCenter =

May i copy right code to display KML on google maps as dynamicly from you?
and how to make a dynamic URL to overlay KML data like users define?

thanks a lot...
i'm so sorry with my english....



      Yahoo! Mail Kini Lebih Cepat dan Lebih Bersih. Rasakan bedanya sekarang! http://id.mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090801/0f5f1338/attachment.html>

More information about the postgis-users mailing list