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?
http://lists.refractions.net/pipermail/postgis-users/2007-November/017630.html

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.setMapType(G_SATELLITE_MAP);

        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 =
 kml.getDefaultCenter();
        map.addOverlay(kml)   
    
      }
    }

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....

Cheers,

Eli


      Yahoo! Mail Kini Lebih Cepat dan Lebih Bersih. Rasakan bedanya sekarang! 
http://id.mail.yahoo.com
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to