Thx, I have a problem now. I have this code:

function load(x,y) {

                //if (modo==

                if (GBrowserIsCompatible()) {
                                        var map = new 
GMap2(document.getElementById("map"));
                                map.setCenter(new GLatLng(y,x), 15);
                                map.addControl(new GLargeMapControl());
                                map.setMapType(G_SATELLITE_MAP);
                                map.addControl(new GMapTypeControl());
                                map.addControl(new GScaleControl());

                                var latlng =new GLatLng(x,y) ;
                                map.addOverlay(new GMarker(latlng));
                                var latlng =new GLatLng(38.5,-4.87) ;
                                map.addOverlay(new GMarker(latlng));
                        }
                }
x and y are of datebase. The map show me in position y,x center but
dont show me the marker. However the second position show me the
marker. If i use GPoint(y,x) that show me the marker.

                                                  var point = new
GPoint (x, y);
                                var marker = new GMarker(point);
                                map.addOverlay(marker);

                                var latlng =new GLatLng(38.5,-4.87) ;
                                map.addOverlay(new GMarker(latlng));

because it could happen?
--~--~---------~--~----~------------~-------~--~----~
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