So here's the situation, i'm calculating envelope of a map extent. Print it out. Set another extent (maximum extent of all the layers) and again print out the map extent. I dont understand two things. Why doesnt the setExtent work correctly? And why doesnt the getAllLayersFullEnvelope return actual full extent of all the layers (it gets trimmed at minx and maxy points). Hope this was comprehensible:) Thanks for your timeMAIN:Envelope env = getEnvelopeFromPolygon(map.getExtent());
Log.i("TOCKA 100 x/y: ", env.getLowerLeft().getX()+"," + env.getLowerLeft().getY() + "/" + env.getUpperRight().getX()+"," + env.getUpperRight().getY());
map.setExtent(getAllLayersFullEnvelope());
env = getEnvelopeFromPolygon(map.getExtent());
Log.i("TOCKA 200 x/y: ", env.getLowerLeft().getX()+"," + env.getLowerLeft().getY() + "/" + env.getUpperRight().getX()+"," + env.getUpperRight().getY());
06-12 11:55:26.062: I/TOCKA 100 x/y:(28093): 464450.3476,102726.77979999967/464639.01269999985,102874.9543999992306-12 11:55:26.238: I/TOCKA2 x/y:(28093): 464261.6825000001,102601.26280000061/464827.6777999997,103023.128999998806-12 11:55:26.410: I/TOCKA 200 x/y:(28093): 464450.3476,102738.1086032788/464639.01269999985,102874.95439999923