Hi, i created a map and I don't know how can i enable to show names
when maps is loaded.

Here is my code

function initialize() {
        if (GBrowserIsCompatible()) {
                var map = new GMap2(document.getElementById('map'));
                map.setMapType(G_SATELLITE_MAP);
                map.addControl(new GSmallMapControl());

                var latLgnInicial = new GLatLng(-10.608779, -55.576175);
                map.setCenter(latLgnInicial, 3);
                var marker = new GMarker(latLgnInicial, {draggable: true});
                map.addOverlay(marker);

                GEvent.addListener(marker, 'dragend', function(latlng) {
                        if(latlng) {
                                document.getElementById('latlng').value = 
latlng.lat() + ' ' +
latlng.lng();
                        }
                });
        }
}

Thank you!

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