[gnome-maps/wip/mlundblad/night-mode: 2/4] mapSource: Add function to create dark source
- From: Marcus Lundblad <mlundblad src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-maps/wip/mlundblad/night-mode: 2/4] mapSource: Add function to create dark source
 
- Date: Sat,  6 Jun 2020 10:47:14 +0000 (UTC)
 
commit 75cda40ce00cad354df9aada861079df70748016
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]