[gnome-maps/gnome-3-34] mapView: Update tile size for local tiles
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-3-34] mapView: Update tile size for local tiles
- Date: Mon, 23 Sep 2019 20:17:00 +0000 (UTC)
commit 13502adda4dcb21444b0c0f4bd44fe505ca9dcd3
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 1367923..6784a7c 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]