[gnome-maps/wip/mlundblad/night-mode: 4/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: 4/4] mapSource: Add function to create dark source
 
- Date: Thu,  4 Jun 2020 21:50:07 +0000 (UTC)
 
commit 3ed561255950467b2757edf8394a3712950316fa
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]