Update vector layer
This commit is contained in:
parent
6309131216
commit
5b15d3fc8f
2 changed files with 4 additions and 1 deletions
|
@ -93,6 +93,7 @@ public class MapVectorLayer extends BaseMapLayer {
|
|||
if (mapRenderer != null) {
|
||||
// opengl renderer
|
||||
mapRenderer.setTarget(new PointI(tilesRect.getCenter31X(), tilesRect.getCenter31Y()));
|
||||
mapRenderer.setAzimuth(tilesRect.getRotate());
|
||||
mapRenderer.setZoom((float) (tilesRect.getZoom() + tilesRect.getZoomScale() + tilesRect.getZoomAnimation()));
|
||||
} else {
|
||||
if (!view.isZooming()) {
|
||||
|
|
|
@ -491,7 +491,9 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall
|
|||
}
|
||||
// make copy to avoid concurrency
|
||||
RotatedTileBox viewportToDraw = currentViewport.copy();
|
||||
fillCanvas(canvas, drawSettings);
|
||||
if(mapRenderer != null) {
|
||||
fillCanvas(canvas, drawSettings);
|
||||
}
|
||||
drawOverMap(canvas, viewportToDraw, drawSettings);
|
||||
} finally {
|
||||
holder.unlockCanvasAndPost(canvas);
|
||||
|
|
Loading…
Reference in a new issue