mapbox - Specific range of map in android by using mapView -


how show mapbox map view in specific range in android need show asia pacific in mapview ,not display full world in mapview android?

you can manually set zoom level of map (radius radius of map in meter):

double radius = 500.0;  circle circle = map.addcircle(new circleoptions().center(latlng).radius(radius).strokecolor(color.red)); circle.setvisible(false); int zoomlevel = getzoomlevel(circle); map.animatecamera(cameraupdatefactory.newlatlngzoom(latlng, zoomlevel));  private int getzoomlevel(circle circle) {   int zoomlevel = 15;   if (circle != null) {     double radius = circle.getradius();     double scale = radius / 500;     zoomlevel = (int) (16 - math.log(scale) / math.log(2));   }   return zoomlevel; } 

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -