Update vector layer

This commit is contained in:
Victor Shcherb 2014-10-07 14:39:45 +03:00
parent 6309131216
commit 5b15d3fc8f
2 changed files with 4 additions and 1 deletions

View file

@ -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()) {

View file

@ -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);