[gnome-maps/wip/mlundblad/night-mode: 1/4] mapSource: Add function to create dark source



commit e7c0697ee5783d7a5609547157e72216d243cd60
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Jun 4 23:45:33 2020 +0200

    mapSource: Add function to create dark source
    
    Add a function to create a map source for a
    dark variant of the street source.

 src/mapSource.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/mapSource.js b/src/mapSource.js
index 49358a94..9104984d 100644
--- a/src/mapSource.js
+++ b/src/mapSource.js
@@ -132,6 +132,10 @@ function createStreetSource() {
     return _createCachedSource(Service.getService().tiles.street);
 }
 
+function createStreetDarkSource() {
+    return _createCachedSource(Service.getService().tiles.streetDark)
+}
+
 function createPrintSource() {
     return _createCachedSource(Service.getService().tiles.print);
 }


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