2010-05-14 4 views

답변

4

여기 setBounds 할 수있는 방법을 찾았습니다 http://www.mymapofjapan.com/blog/setting-size-and-zoom-level-of-maps/

var bounds = new GLatLngBounds; 
bounds.extend(new GLatLng(South, West)); 
bounds.extend(new GLatLng(North, East)); 
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds)); 

Google지도 이산 줌 레벨이 있기 때문에 당신이해야 할 수도 있습니다, 그래서 당신은 아마, 그것은 당신이 원하는 정확히 경계를 설정할 수 없습니다 map.getBounds() 호출; 이후 사용자가보고있는 실제 범위를 보여줍니다.

관련 문제