AbstractVectorLayer minor optimization (#859)

This commit is contained in:
Emux
2021-07-16 13:50:03 +03:00
committed by GitHub
parent 5de7070f15
commit bd24ba12d5

View File

@@ -1,6 +1,7 @@
/*
* Copyright 2014 Hannes Janetzek
* Copyright 2018 Gustl22
* Copyright 2021 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -107,12 +108,12 @@ public abstract class AbstractVectorLayer<T> extends Layer implements UpdateList
public boolean doWork(Task t) {
Box bbox;
float[] box = new float[8];
//float[] box = new float[8];
Viewport v = mMap.viewport().getSyncViewport();
synchronized (v) {
bbox = v.getBBox(null, 0);
v.getMapExtents(box, 0);
//v.getMapExtents(box, 0);
v.getMapPosition(t.position);
}