android - Google Map V2 how to set ZoomToSpan? -
as title, in map v1 utilize
mapcontroller.zoomtospan(..., ..., ...);
to include markers on screen.
dose map v2 has same method?
2013/2/22 edit:
first, latlng points want involve on screen.
assume if have 3 latlng points, use
latlngbounds bounds = new latlngbounds.builder().include(point1) .include(point2).include(point3).build(); mmap.movecamera(cameraupdatefactory.newlatlngbounds(bounds, 50));
try this
map.addmarker(new markeroptions().position(latlng)).setvisible(true); // move photographic camera instantly location zoom of 15. map.movecamera(cameraupdatefactory.newlatlngzoom(latlng, 15)); // zoom in, animating camera. map.animatecamera(cameraupdatefactory.zoomto(14), 2000, null);
android
No comments:
Post a Comment