On Jan 13, 10:56 am, orkun <[email protected]> wrote:
> hello
>
> how can I set center of a map to a point clicked ?

assuming your GMap2 object is a global variable called map:
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.click

GEvent.addListener(map, "click", function(click(overlay, latlng,
overlaylatlng) {
map.setCenter(latlng);
}

Totally untested. If it doesn't work for you, or you have questions,
please follow the posting guidelines and post a link to your map that
exhibits the problem:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/google-maps-api/web/why-including-a-link-is-critical

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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