[gnome-maps/wip/jonasdn/vector-tiles] wip



commit 0c67fd2fd3f4756c21ed5a45d144bda769a0661e
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sat May 2 15:22:16 2015 +0200

    wip

 data/gnome-maps.mapcss     |    6 ++++++
 lib/maps-mapbox-renderer.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/gnome-maps.mapcss b/data/gnome-maps.mapcss
index 07069c5..0b25f93 100644
--- a/data/gnome-maps.mapcss
+++ b/data/gnome-maps.mapcss
@@ -34,6 +34,12 @@ canvas {
     fill-color: #FAEBD7;
 }
 
+way[highway] {
+    text: name;
+    font-size: 6;
+    font-weight: normal;
+    font-family: cantarell;
+}
 
 /* Roads */
 way|z8-17[highway=motorway] {
diff --git a/lib/maps-mapbox-renderer.c b/lib/maps-mapbox-renderer.c
index 4f35861..aab1cca 100644
--- a/lib/maps-mapbox-renderer.c
+++ b/lib/maps-mapbox-renderer.c
@@ -123,7 +123,7 @@ on_stylesheet_changed (GFileMonitor *monitor,
                        GFileMonitorEvent event_type,
                        MapsMapboxRenderer *renderer)
 {
-  if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT) {
+  if (event_type == G_FILE_MONITOR_EVENT_CHANGED) {
     vtile_mapcss_load (renderer->priv->stylesheet,
                        g_file_get_path (file), NULL);
 


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