How to center a map


#1

I set a mark on a map
My actual code is:

    point = new google.maps.LatLng(latitud, longitud)
    marker = GoogleMap1.setMarker({icon: elicon,position: point,center: point})

and I would like to know what function centers the map at that point.


#2

Using this as a guide, one of these should work:

 map.setCenter(new google.maps.LatLng(latitud, longitud)); // or
 map.setCenter({ lat: latitud, lng: longitud }); 

Kind regards,
Doug