Sample small fix
This commit is contained in:
parent
a5cc068c29
commit
a284926aa3
1 changed files with 6 additions and 6 deletions
|
@ -224,7 +224,7 @@ public class MapContextMenuFragment extends Fragment {
|
||||||
thread.startZooming(ZOOM_IN_STANDARD,
|
thread.startZooming(ZOOM_IN_STANDARD,
|
||||||
map.getZoomFractionalPart(), true);
|
map.getZoomFractionalPart(), true);
|
||||||
*/
|
*/
|
||||||
map.setZoom(ZOOM_IN_STANDARD);
|
getMainActivity().setZoom(ZOOM_IN_STANDARD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hasMoved) {
|
if (hasMoved) {
|
||||||
|
@ -581,7 +581,7 @@ public class MapContextMenuFragment extends Fragment {
|
||||||
if (mapCenter != null) {
|
if (mapCenter != null) {
|
||||||
PointI centerI = Utilities.convertLatLonTo31(
|
PointI centerI = Utilities.convertLatLonTo31(
|
||||||
new net.osmand.core.jni.LatLon(mapCenter.getLatitude(), mapCenter.getLongitude()));
|
new net.osmand.core.jni.LatLon(mapCenter.getLatitude(), mapCenter.getLongitude()));
|
||||||
map.setTarget(centerI);
|
getMainActivity().setTarget(centerI);
|
||||||
}
|
}
|
||||||
menu.setMapCenter(null);
|
menu.setMapCenter(null);
|
||||||
menu.setMapZoom(0);
|
menu.setMapZoom(0);
|
||||||
|
@ -717,8 +717,8 @@ public class MapContextMenuFragment extends Fragment {
|
||||||
if (needMove) {
|
if (needMove) {
|
||||||
//thread.startMoving(flat, flon, fZoom, true); todo animation
|
//thread.startMoving(flat, flon, fZoom, true); todo animation
|
||||||
PointI targetI = Utilities.convertLatLonTo31(new net.osmand.core.jni.LatLon(flat, flon));
|
PointI targetI = Utilities.convertLatLonTo31(new net.osmand.core.jni.LatLon(flat, flon));
|
||||||
map.setTarget(targetI);
|
getMainActivity().setTarget(targetI);
|
||||||
map.setZoom(fZoom);
|
getMainActivity().setZoom(fZoom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -866,7 +866,7 @@ public class MapContextMenuFragment extends Fragment {
|
||||||
} else {
|
} else {
|
||||||
PointI targetI = Utilities.convertLatLonTo31(
|
PointI targetI = Utilities.convertLatLonTo31(
|
||||||
new net.osmand.core.jni.LatLon(latlon.getLatitude(), latlon.getLongitude()));
|
new net.osmand.core.jni.LatLon(latlon.getLatitude(), latlon.getLongitude()));
|
||||||
map.setTarget(targetI);
|
getMainActivity().setTarget(targetI);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -968,7 +968,7 @@ public class MapContextMenuFragment extends Fragment {
|
||||||
if (mapCenter != null) {
|
if (mapCenter != null) {
|
||||||
PointI targetI = Utilities.convertLatLonTo31(
|
PointI targetI = Utilities.convertLatLonTo31(
|
||||||
new net.osmand.core.jni.LatLon(mapCenter.getLatitude(), mapCenter.getLongitude()));
|
new net.osmand.core.jni.LatLon(mapCenter.getLatitude(), mapCenter.getLongitude()));
|
||||||
map.setTarget(targetI);
|
getMainActivity().setTarget(targetI);
|
||||||
}
|
}
|
||||||
adjustMapPosition(getPosY(), true, false);
|
adjustMapPosition(getPosY(), true, false);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue