Google Maps v3 map.getBounds (). ContieneLatLng no es una función
¿Cómo configuro la función "setMap" aquí para trasladar este código a v3? O puerto por lo general a v3 ...
// mapa más reciente, si el elemento está fuera de la pantalla de mapa
while ((!map.getBounds().containsLatLng(marker.getPosition())) & (showAllCategoryElements == 0)) {
var newCenterPointLng = (map.getBounds().getCenter().lng() + marker.getPosition().lng()) / 2;
var newCenterPointLat = (map.getBounds().getCenter().lat() + marker.getPosition().lat()) / 2;
map.panTo(new google.maps.LatLng(newCenterPointLat, newCenterPointLng));
map.setCenter(new google.maps.LatLng(newCenterPointLat, newCenterPointLng));
if (!map.getBounds().containsLatLng(marker.getPosition())){
map.zoomOut();
}
Aquí hay un ejemplohttp://d.hatena.ne.jp/tsmsogn/20111216/1324026723 algunos consejos: markus.tao.at/geo/google-maps-api-v3-is-in-town/
yo también importohttps://github.com/tparkin/Google-Maps-Point-in-Polygon js para obtener el soporte "nos contieneLatLng "
Gracias por ayuda o consejos