--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
var options = {
types: ['establishment']
};
var autocomplete = new google.maps.places.Autocomplete(input,
options);
google.maps.event.addListener(autocomplete, "place_changed", function()
{
var place = autocomplete.getPlace();
mapCanvas.panTo(place.geometry.location);
});
----------------------------------