This commit is contained in:
simon 2020-09-09 15:44:39 +03:00
parent ce2b0eacbf
commit 576e70a606
2 changed files with 4 additions and 2 deletions

View file

@ -232,8 +232,10 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
switchToRoutePlanningMode(); switchToRoutePlanningMode();
} }
// When location is changed we need to refresh map in order to show movement! // When location is changed we need to refresh map in order to show movement!
if (!mapView.isServerRendering()){
mapView.refreshMap(); mapView.refreshMap();
} }
}
if (dashboard != null) { if (dashboard != null) {
dashboard.updateMyLocation(location); dashboard.updateMyLocation(location);

View file

@ -62,7 +62,7 @@ public class TileEndpoint implements OsmAndHttpServer.ApiEndpoint {
} }
@Override @Override
public synchronized NanoHTTPD.Response process(NanoHTTPD.IHTTPSession session, String url) { public NanoHTTPD.Response process(NanoHTTPD.IHTTPSession session, String url) {
// https://tile.osmand.net/hd/6/55/25.png // https://tile.osmand.net/hd/6/55/25.png
int extInd = url.indexOf('.'); int extInd = url.indexOf('.');
if (extInd >= 0) { if (extInd >= 0) {