refactored some code

This commit is contained in:
Chumva 2018-03-01 13:21:31 +02:00
parent fe5fa35a24
commit 192e562b35

View file

@ -248,10 +248,6 @@ public class MapMarkersWidgetsFactory {
if (loc != null && marker.point != null) {
Location.distanceBetween(marker.getLatitude(), marker.getLongitude(), loc.getLatitude(), loc.getLongitude(), mes);
}
boolean useCenter = !(map.getMapViewTrackingUtilities().isMapLinkedToLocation() && customLocation);
if (useCenter) {
heading = -map.getMapRotate();
}
if (customLocation) {
heading = 0f;