Hi, I want to load latitude and longitude of a database in a
application using Java.
I hava this code:

<script type="text/javascript">
        //<![CDATA[
        double x;
        double y;
        function load(x ,y) {
                if (GBrowserIsCompatible()) {
                        var map = new GMap2(document.getElementById("map"));
                        map.setCenter(new GLatLng(x, y), 17);
                        map.addControl(new GLargeMapControl());
                        map.setMapType(G_SATELLITE_MAP);
                        map.addControl(new GMapTypeControl());
                        map.addControl(new GScaleControl());
                        var point = new GPoint(y, x);
                        var marker = new GMarker(point);
                        map.addOverlay(marker);
                }
        }
        //]]>
</script>

I woul like load x and y from a database. How i could? thx.

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

Reply via email to