[gnome-maps/wip/mlundblad/update-local-tile-size: 2/2] mapView: Update tile size for local tiles



commit b515a39d8d7f187f96584b8f5db7ad167cca8f8c
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Sep 23 22:00:42 2019 +0200

    mapView: Update tile size for local tiles
    
    Set the tile size when using the local file
    tile source (with --local) to 512 (rather than
    the default value from ChamplainMapSource of
    256), since this is the tile size we use
    nowadays from Mapbox.

 src/mapView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 695c699..6197f0e 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -337,7 +337,8 @@ var MapView = GObject.registerClass({
             let renderer = new Champlain.ImageRenderer();
             let source = new Maps.FileTileSource({
                 path: Utils.getBufferText(Application.application.local_tile_path),
-                renderer: renderer
+                renderer: renderer,
+                tile_size: 512
             });
             try {
                 source.prepare();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]