refactor: Viewport.getViewBox() -> getBBox()
This commit is contained in:
Submodule vtm-android-app updated: 130efd06be...79fa132039
@@ -169,7 +169,7 @@ public class ItemizedLayer<Item extends MarkerItem> extends MarkerLayer<Item>
|
||||
int eventY = (int) event.getY() - mMap.getHeight() / 2;
|
||||
Viewport mapPosition = mMap.viewport();
|
||||
|
||||
BoundingBox bbox = mapPosition.getViewBox();
|
||||
BoundingBox bbox = mapPosition.getBBox();
|
||||
|
||||
int nearest = -1;
|
||||
|
||||
|
||||
@@ -228,8 +228,8 @@ public class Viewport {
|
||||
*
|
||||
* @return BoundingBox containing view
|
||||
*/
|
||||
public synchronized BoundingBox getViewBox() {
|
||||
getViewBox(mMapBBox);
|
||||
public synchronized BoundingBox getBBox() {
|
||||
getBBox(mMapBBox);
|
||||
|
||||
// scale map-pixel coordinates at current scale to
|
||||
// absolute coordinates and apply mercator projection.
|
||||
@@ -247,7 +247,7 @@ public class Viewport {
|
||||
* the visible part of the map. Sets box to map coordinates:
|
||||
* minX,minY,maxY,maxY
|
||||
*/
|
||||
public synchronized void getViewBox(Box box) {
|
||||
public synchronized void getBBox(Box box) {
|
||||
float[] coords = mViewCoords;
|
||||
getMapExtents(coords, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user